This commit is contained in:
abearxiong committed 2025-05-01 03:59:37 +08:00
1 parent 26ca4c21c8
commit e58adbc46b
45 files changed
+7460 -87

No files matched your search

+2 -1
View File
@@ -1,2 +1,3 @@
//npm.xiongxiao.me/:_authToken=${ME_NPM_TOKEN} //npm.xiongxiao.me/:_authToken=${ME_NPM_TOKEN}
//registry.npmjs.org/:_authToken=${NPM_TOKEN} //registry.npmjs.org/:_authToken=${NPM_TOKEN}
ignore-workspace-root-check=true
+6 -1
View File
@@ -14,6 +14,7 @@
}, },
"scripts": { "scripts": {
"dev": "cross-env NODE_TLS_REJECT_UNAUTHORIZED=0 bun --watch src/dev.ts ", "dev": "cross-env NODE_TLS_REJECT_UNAUTHORIZED=0 bun --watch src/dev.ts ",
"worker": "bun --watch src/task/worker.ts",
"build": "rimraf dist && bun run bun.config.mjs", "build": "rimraf dist && bun run bun.config.mjs",
"test": "tsx test/**/*.ts", "test": "tsx test/**/*.ts",
"clean": "rm -rf dist", "clean": "rm -rf dist",
@@ -39,9 +40,12 @@
"cookie": "^1.0.2", "cookie": "^1.0.2",
"dayjs": "^1.11.13", "dayjs": "^1.11.13",
"formidable": "^3.5.4", "formidable": "^3.5.4",
"lodash-es": "^4.17.21" "lodash-es": "^4.17.21",
"nanoid": "^5.1.5"
}, },
"devDependencies": { "devDependencies": {
"@kevisual/ai-center": "^0.0.3",
"@kevisual/app-assistant": "workspace:*",
"@kevisual/types": "^0.0.9", "@kevisual/types": "^0.0.9",
"@kevisual/use-config": "^1.0.12", "@kevisual/use-config": "^1.0.12",
"@types/bun": "^1.2.11", "@types/bun": "^1.2.11",
@@ -49,6 +53,7 @@
"@types/formidable": "^3.4.5", "@types/formidable": "^3.4.5",
"@types/lodash-es": "^4.17.12", "@types/lodash-es": "^4.17.12",
"@types/node": "^22.15.3", "@types/node": "^22.15.3",
"bullmq": "^5.51.1",
"commander": "^13.1.0", "commander": "^13.1.0",
"concurrently": "^9.1.2", "concurrently": "^9.1.2",
"cross-env": "^7.0.3", "cross-env": "^7.0.3",
+17
View File
@@ -0,0 +1,17 @@
node_modules
dist
app.config.json5
apps.config.json
deploy.tar.gz
cache-file
/apps
logs
.env*
!.env.example
+21
View File
@@ -0,0 +1,21 @@
{
"name": "@kevisual/app-assistant",
"version": "0.0.1",
"description": "",
"main": "index.js",
"scripts": {
"dev": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "abearxiong <xiongxiao@xiongxiao.me> (https://www.xiongxiao.me)",
"license": "MIT",
"packageManager": "pnpm@10.10.0",
"type": "module",
"devDependencies": {
"@types/node": "^22.15.3",
"bullmq": "^5.51.1"
},
"dependencies": {
"nanoid": "^5.1.5"
}
}
+1
View File
@@ -0,0 +1 @@
export * from './provider/comments/xhs.ts';
@@ -0,0 +1,7 @@
import { SocialBase } from '@/social/social-base.ts';
export class XHS extends SocialBase {
constructor() {
super();
}
}
@@ -0,0 +1,39 @@
import { nanoid } from 'nanoid';
export class SocialBase<T = any> {
id: string = '';
/**
* 是否运行中
*/
isRuning: boolean = false;
/**
* 应用的配置项
*/
config: T;
constructor(opts?: any) {
this.config = opts?.config || {};
this.id = opts?.id || nanoid();
}
/**
* 获取用户信息
*/
async getUserInfo() {
throw new Error('Method not implemented.');
}
/**
* 获取被 call 的信息
*/
async getMention() {
throw new Error('Method not implemented.');
}
/**
* 发送评论信息
*/
async sendComment() {
// throw new Error('Method not implemented.');
}
async getUnread() {
throw new Error('Method not implemented.');
}
}
@@ -0,0 +1,75 @@
const unreadUrl = 'https://edith.xiaohongshu.com/api/sns/web/unread_count';
const cookie =
'a1=19686f83a65uiloc0y7wv79une457hsjh5lt00dpe40000147626;abRequestId=0a794332-4561-5f49-93f7-780b8b028e1f;access-token-creator.xiaohongshu.com=customer.creator.AT-68c517498636784561614544frjvxzj7yu8iewie;agora_session=6a0031373435393132333637323735343733393437313634000000000000;customerClientId=536706778174172;galaxy_creator_session_id=OhpHDDSoADhNEhnH5LLnQpletFLApu1fd91f;galaxy.creator.beaker.session.id=1745912429847011598150;gid=yjKqYfK0qDyYyj2DDSqd4ujxyW9kvxIuT62ddkMWhElyuxq8yDd6hl888q2WYy88j8i80yYD;loadts=1746020512562;sec_poison_id=441c932e-a6ac-4d8d-97ae-beb14adb1929;unread={%22ub%22:%2267eaf1fe000000001202c3ea%22%2C%22ue%22:%226803aa37000000001c0319d8%22%2C%22uc%22:35};web_session=040069b2e9c511ca302086ca253a4bde8b1cd1;webBuild=4.62.3;webId=97e5f097499594cad49aa0bd1a8ed83f;websectiga=3633fe24d49c7dd0eb923edc8205740f10fdb18b25d424d2a2322c6196d2a4ad;x-user-id-creator.xiaohongshu.com=639d86590000000026006076;xsecappid=xhs-pc-web;acw_tc=0a00df6217460205042195762e721fba339a0dbe8e4738b961a5ff15e74619;';
const cookieObj = cookie.split('; ').reduce((acc, item) => {
const [key, value] = item.split('=');
acc[key] = value;
return acc;
}, {} as Record<string, string>);
const web_session = cookieObj['web_session'] || '';
const a1 = cookieObj['a1'] || '';
const headers = {
'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36',
Cookie: cookie,
};
const meUri = '/api/sns/web/v2/user/me';
const getSign = async (uri: string, data: any, a1: string, web_session?: string) => {
const signs = await fetch('http://light.xiongxiao.me:5006/sign', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify({
uri,
data,
a1,
web_session: web_session,
}),
}).then((res) => res.json());
return signs;
};
const getUserMe = async () => {
const sign = await getSign(meUri, null, a1, web_session);
// const sign = {
// 'x-s':
// 'XYW_eyJzaWduU3ZuIjoiNTYiLCJzaWduVHlwZSI6IngyIiwiYXBwSWQiOiJsb2dpbiIsInNpZ25WZXJzaW9uIjoiMSIsInBheWxvYWQiOiJjYWE4NzYyMjk5NzQ0NDkzNGVhMWIxNDBjNzA0NTI2YmI0ZGZiYjcyMWJjMWQyZTEzNDhhNzZmNmM4MTI5NzljM2VkMWRmMjU0MGNkZDRkZmEyZGE0YjIzOTg0MDMyYmNmNGE4NDU1MzU4ZmZhZDQ0NjkxNzg4YWRjN2U2MmU3YjJmMzdmZGMzZTgwOWQ5NDNmOTRkM2JhMzVjNmQ3MzE4MjA1OWI3MTYyZGU0YjgxYzcyMDI2NmQyM2EzMmY1MGQ2NTQ5MmQ0ZTlhOTA3NmExY2JmMTYyZGJhMWJiMzAxNTg3MmY3MWU5MmIyNDllZGM3MmRkMjhiNGQ4Y2I4MjI2ZWY3YTdkYjI3NGQ2Y2YyMjVkZjk2ZjFmNWJlN2M2ZDkwNjY1MTE4MWJkYWNmYmQzYzVhMDk4Nzg3YjNmNThjMjc1ZWNjNDQzODFkOGNjNmU2ODAyNDFiZTRiODIwZjlkMDUyNTAyODk1ODZhYjM1NTRlMDJjYjhmZDlmNzIyNjM0NDMzZDBiZmNjMzg5NGU2ZDJmNGFiNGVlNGY0MzljMSJ9',
// 'x-t': '1746022429225',
// };
console.log('sign', sign);
const baseURL = 'https://edith.xiaohongshu.com';
const xhsMeUri = baseURL + '/api/sns/web/v2/user/me';
const res = await fetch(xhsMeUri, {
method: 'GET',
headers: {
...headers,
...sign,
},
});
const data = await res.json();
return data;
};
getUserMe().then((res) => {
console.log('res', res);
});
export async function getUnread() {
const unreadUri = '/api/sns/web/unread_count';
const sign = await getSign(unreadUri, null, a1, web_session);
console.log('sign', sign);
const res = await fetch(unreadUrl, {
method: 'GET',
headers: {
...headers,
...sign,
},
});
const data = await res.json();
return data;
}
// getUnread().then((res) => {
// console.log('res', res);
// });
+15
View File
@@ -0,0 +1,15 @@
{
"extends": "@kevisual/types/json/backend.json",
"compilerOptions": {
"baseUrl": "./",
"paths": {
"@/*": [
"src/*"
]
}
},
"include": [
"src/**/*.ts",
],
"exclude": [],
}
+17
View File
@@ -0,0 +1,17 @@
node_modules
dist
app.config.json5
apps.config.json
deploy.tar.gz
cache-file
/apps
logs
.env*
!.env.example
+2
View File
@@ -0,0 +1,2 @@
//npm.xiongxiao.me/:_authToken=${ME_NPM_TOKEN}
//registry.npmjs.org/:_authToken=${NPM_TOKEN}
+24
View File
@@ -0,0 +1,24 @@
// @ts-check
// https://bun.sh/docs/bundler
// @ts-ignore
import pkg from './package.json';
// import { resolvePath as rp } from '@kevisual/use-config/env';
import path from 'path';
const rp = (resolvePath) => {
return path.resolve(process.cwd(), resolvePath);
};
// bun run src/index.ts --
await Bun.build({
target: 'node',
format: 'esm',
entrypoints: [rp('src/index.js')],
outdir: rp('./dist'),
naming: {
entry: 'app.mjs',
},
define: {
VERSION: JSON.stringify(pkg.version),
},
env: 'KEVISUAL_*',
});
+33
View File
@@ -0,0 +1,33 @@
{
"name": "@kevisual/xhs-core",
"version": "0.0.2",
"description": "",
"main": "dist/app.mjs",
"types": "dist/app.d.ts",
"scripts": {
"build": "bun run bun.config.mjs",
"postbuild": "dts -i src/index.js -o app.d.ts",
"dts": "dts -i src/index.js -o app.d.ts"
},
"file": [
"src",
"python",
"test",
"dist"
],
"publishConfig": {
"access": "public"
},
"keywords": [],
"author": "abearxiong <xiongxiao@xiongxiao.me> (https://www.xiongxiao.me)",
"license": "MIT",
"packageManager": "pnpm@10.10.0",
"type": "module",
"dependencies": {},
"devDependencies": {
"axios": "^1.9.0",
"crypto-js": "^4.2.0",
"jsdom": "^26.1.0",
"@kevisual/dts": "^0.0.2"
}
}
File diff suppressed because it is too large. Load diff
+38
View File
@@ -0,0 +1,38 @@
from enum import Enum
from typing import NamedTuple
from requests import RequestException
class ErrorTuple(NamedTuple):
code: int
msg: str
class ErrorEnum(Enum):
IP_BLOCK = ErrorTuple(300012, "网络连接异常,请检查网络设置或重启试试")
NOTE_ABNORMAL = ErrorTuple(-510001, "笔记状态异常,请稍后查看")
NOTE_SECRETE_FAULT = ErrorTuple(-510001, "当前内容无法展示")
SIGN_FAULT = ErrorTuple(300015, "浏览器异常,请尝试关闭/卸载风险插件或重启试试!")
SESSION_EXPIRED = ErrorTuple(-100, "登录已过期")
class DataFetchError(RequestException):
"""something error when fetch"""
class IPBlockError(RequestException):
"""fetch so fast that the server block us ip"""
class SignError(RequestException):
"""fetch error because x-s sign verror"""
class NeedVerifyError(RequestException):
"""fetch error because need captcha"""
def __init__(self, *args, **kwargs):
self.verify_type = kwargs.pop("verify_type", None)
self.verify_uuid = kwargs.pop("verify_uuid", None)
super().__init__(*args, **kwargs)
+409
View File
@@ -0,0 +1,409 @@
import binascii
import ctypes
import hashlib
import json
import random
import re
import string
import time
import urllib.parse
from xml.etree import ElementTree
import requests
def sign(uri, data=None, ctime=None, a1="", b1=""):
"""
takes in a URI (uniform resource identifier), an optional data dictionary, and an optional ctime parameter. It returns a dictionary containing two keys: "x-s" and "x-t".
"""
def h(n):
m = ""
d = "A4NjFqYu5wPHsO0XTdDgMa2r1ZQocVte9UJBvk6/7=yRnhISGKblCWi+LpfE8xzm3"
for i in range(0, 32, 3):
o = ord(n[i])
g = ord(n[i + 1]) if i + 1 < 32 else 0
h = ord(n[i + 2]) if i + 2 < 32 else 0
x = ((o & 3) << 4) | (g >> 4)
p = ((15 & g) << 2) | (h >> 6)
v = o >> 2
b = h & 63 if h else 64
if not g:
p = b = 64
m += d[v] + d[x] + d[p] + d[b]
return m
v = int(round(time.time() * 1000) if not ctime else ctime)
raw_str = f"{v}test{uri}{json.dumps(data, separators=(',', ':'), ensure_ascii=False) if isinstance(data, dict) else ''}"
md5_str = hashlib.md5(raw_str.encode('utf-8')).hexdigest()
x_s = h(md5_str)
x_t = str(v)
common = {
"s0": 5, # getPlatformCode
"s1": "",
"x0": "1", # localStorage.getItem("b1b1")
"x1": "3.2.0", # version
"x2": "Windows",
"x3": "xhs-pc-web",
"x4": "2.3.1",
"x5": a1, # cookie of a1
"x6": x_t,
"x7": x_s,
"x8": b1, # localStorage.getItem("b1")
"x9": mrc(x_t + x_s),
"x10": 1, # getSigCount
}
encodeStr = encodeUtf8(json.dumps(common, separators=(',', ':')))
x_s_common = b64Encode(encodeStr)
return {
"x-s": x_s,
"x-t": x_t,
"x-s-common": x_s_common,
}
def get_a1_and_web_id():
"""generate a1 and webid cookie str, the first return value is a1, second is webId
for example: a1, web_id = get_a1_and_web_id()
"""
def random_str(length):
alphabet = string.ascii_letters + string.digits
return ''.join(random.choice(alphabet) for _ in range(length))
d = hex(int(time.time() * 1000))[2:] + random_str(30) + "5" + "0" + "000"
g = (d + str(binascii.crc32(str(d).encode('utf-8'))))[:52]
return g, hashlib.md5(g.encode('utf-8')).hexdigest()
img_cdns = [
"https://sns-img-qc.xhscdn.com",
"https://sns-img-hw.xhscdn.com",
"https://sns-img-bd.xhscdn.com",
"https://sns-img-qn.xhscdn.com",
]
def get_img_url_by_trace_id(trace_id: str, format: str = "png"):
return f"{random.choice(img_cdns)}/{trace_id}?imageView2/format/{format}"
def get_img_urls_by_trace_id(trace_id: str, format: str = "png"):
return [f"{cdn}/{trace_id}?imageView2/format/{format}" for cdn in img_cdns]
def get_trace_id(img_url: str):
trace_id = img_url.split("/")[-1].split("!")[0]
if "spectrum" in img_url:
return "spectrum/" + trace_id
return trace_id
def get_imgs_url_from_note(note) -> list:
"""the return type is [img1_url, img2_url, ...]"""
imgs = note["image_list"]
if not len(imgs):
return []
return [get_img_url_by_trace_id(get_trace_id(img["info_list"][0]["url"])) for img in imgs]
def get_imgs_urls_from_note(note) -> list:
"""the return type is [[img1_url1, img1_url2, img1_url3], [img2_url, img2_url2, img2_url3], ...]"""
imgs = note["image_list"]
if not len(imgs):
return []
return [get_img_urls_by_trace_id(img["trace_id"]) for img in imgs]
video_cdns = [
"https://sns-video-qc.xhscdn.com",
"https://sns-video-hw.xhscdn.com",
"https://sns-video-bd.xhscdn.com",
"https://sns-video-qn.xhscdn.com",
]
def get_video_url_from_note(note) -> str:
if not note.get("video"):
return ""
origin_video_key = note['video']['consumer']['origin_video_key']
return f"{random.choice(video_cdns)}/{origin_video_key}"
def get_video_urls_from_note(note) -> list:
if not note.get("video"):
return []
origin_video_key = note['video']['consumer']['origin_video_key']
return [f"{cdn}/{origin_video_key}" for cdn in video_cdns]
def download_file(url: str, filename: str):
with requests.get(url, stream=True) as r:
r.raise_for_status()
with open(filename, 'wb') as f:
for chunk in r.iter_content(chunk_size=8192):
f.write(chunk)
def get_valid_path_name(text):
invalid_chars = '<>:"/\\|?*'
return re.sub('[{}]'.format(re.escape(invalid_chars)), '_', text)
def mrc(e):
ie = [
0, 1996959894, 3993919788, 2567524794, 124634137, 1886057615, 3915621685,
2657392035, 249268274, 2044508324, 3772115230, 2547177864, 162941995,
2125561021, 3887607047, 2428444049, 498536548, 1789927666, 4089016648,
2227061214, 450548861, 1843258603, 4107580753, 2211677639, 325883990,
1684777152, 4251122042, 2321926636, 335633487, 1661365465, 4195302755,
2366115317, 997073096, 1281953886, 3579855332, 2724688242, 1006888145,
1258607687, 3524101629, 2768942443, 901097722, 1119000684, 3686517206,
2898065728, 853044451, 1172266101, 3705015759, 2882616665, 651767980,
1373503546, 3369554304, 3218104598, 565507253, 1454621731, 3485111705,
3099436303, 671266974, 1594198024, 3322730930, 2970347812, 795835527,
1483230225, 3244367275, 3060149565, 1994146192, 31158534, 2563907772,
4023717930, 1907459465, 112637215, 2680153253, 3904427059, 2013776290,
251722036, 2517215374, 3775830040, 2137656763, 141376813, 2439277719,
3865271297, 1802195444, 476864866, 2238001368, 4066508878, 1812370925,
453092731, 2181625025, 4111451223, 1706088902, 314042704, 2344532202,
4240017532, 1658658271, 366619977, 2362670323, 4224994405, 1303535960,
984961486, 2747007092, 3569037538, 1256170817, 1037604311, 2765210733,
3554079995, 1131014506, 879679996, 2909243462, 3663771856, 1141124467,
855842277, 2852801631, 3708648649, 1342533948, 654459306, 3188396048,
3373015174, 1466479909, 544179635, 3110523913, 3462522015, 1591671054,
702138776, 2966460450, 3352799412, 1504918807, 783551873, 3082640443,
3233442989, 3988292384, 2596254646, 62317068, 1957810842, 3939845945,
2647816111, 81470997, 1943803523, 3814918930, 2489596804, 225274430,
2053790376, 3826175755, 2466906013, 167816743, 2097651377, 4027552580,
2265490386, 503444072, 1762050814, 4150417245, 2154129355, 426522225,
1852507879, 4275313526, 2312317920, 282753626, 1742555852, 4189708143,
2394877945, 397917763, 1622183637, 3604390888, 2714866558, 953729732,
1340076626, 3518719985, 2797360999, 1068828381, 1219638859, 3624741850,
2936675148, 906185462, 1090812512, 3747672003, 2825379669, 829329135,
1181335161, 3412177804, 3160834842, 628085408, 1382605366, 3423369109,
3138078467, 570562233, 1426400815, 3317316542, 2998733608, 733239954,
1555261956, 3268935591, 3050360625, 752459403, 1541320221, 2607071920,
3965973030, 1969922972, 40735498, 2617837225, 3943577151, 1913087877,
83908371, 2512341634, 3803740692, 2075208622, 213261112, 2463272603,
3855990285, 2094854071, 198958881, 2262029012, 4057260610, 1759359992,
534414190, 2176718541, 4139329115, 1873836001, 414664567, 2282248934,
4279200368, 1711684554, 285281116, 2405801727, 4167216745, 1634467795,
376229701, 2685067896, 3608007406, 1308918612, 956543938, 2808555105,
3495958263, 1231636301, 1047427035, 2932959818, 3654703836, 1088359270,
936918000, 2847714899, 3736837829, 1202900863, 817233897, 3183342108,
3401237130, 1404277552, 615818150, 3134207493, 3453421203, 1423857449,
601450431, 3009837614, 3294710456, 1567103746, 711928724, 3020668471,
3272380065, 1510334235, 755167117,
]
o = -1
def right_without_sign(num, bit=0) -> int:
val = ctypes.c_uint32(num).value >> bit
MAX32INT = 4294967295
return (val + (MAX32INT + 1)) % (2 * (MAX32INT + 1)) - MAX32INT - 1
for n in range(57):
o = ie[(o & 255) ^ ord(e[n])] ^ right_without_sign(o, 8)
return o ^ -1 ^ 3988292384
lookup = [
"Z",
"m",
"s",
"e",
"r",
"b",
"B",
"o",
"H",
"Q",
"t",
"N",
"P",
"+",
"w",
"O",
"c",
"z",
"a",
"/",
"L",
"p",
"n",
"g",
"G",
"8",
"y",
"J",
"q",
"4",
"2",
"K",
"W",
"Y",
"j",
"0",
"D",
"S",
"f",
"d",
"i",
"k",
"x",
"3",
"V",
"T",
"1",
"6",
"I",
"l",
"U",
"A",
"F",
"M",
"9",
"7",
"h",
"E",
"C",
"v",
"u",
"R",
"X",
"5",
]
def tripletToBase64(e):
return (
lookup[63 & (e >> 18)] + lookup[63 & (e >> 12)] + lookup[(e >> 6) & 63] + lookup[e & 63]
)
def encodeChunk(e, t, r):
m = []
for b in range(t, r, 3):
n = (16711680 & (e[b] << 16)) + \
((e[b + 1] << 8) & 65280) + (e[b + 2] & 255)
m.append(tripletToBase64(n))
return ''.join(m)
def b64Encode(e):
P = len(e)
W = P % 3
U = []
z = 16383
H = 0
Z = P - W
while H < Z:
U.append(encodeChunk(e, H, Z if H + z > Z else H + z))
H += z
if 1 == W:
F = e[P - 1]
U.append(lookup[F >> 2] + lookup[(F << 4) & 63] + "==")
elif 2 == W:
F = (e[P - 2] << 8) + e[P - 1]
U.append(lookup[F >> 10] + lookup[63 & (F >> 4)] + lookup[(F << 2) & 63] + "=")
return "".join(U)
def encodeUtf8(e):
b = []
m = urllib.parse.quote(e, safe='~()*!.\'')
w = 0
while w < len(m):
T = m[w]
if T == "%":
E = m[w + 1] + m[w + 2]
S = int(E, 16)
b.append(S)
w += 2
else:
b.append(ord(T[0]))
w += 1
return b
def base36encode(number, alphabet='0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ'):
"""Converts an integer to a base36 string."""
if not isinstance(number, int):
raise TypeError('number must be an integer')
base36 = ''
sign = ''
if number < 0:
sign = '-'
number = -number
if 0 <= number < len(alphabet):
return sign + alphabet[number]
while number != 0:
number, i = divmod(number, len(alphabet))
base36 = alphabet[i] + base36
return sign + base36
def base36decode(number):
return int(number, 36)
def xml_to_dict(element):
result = {}
for child in element:
if child:
child_dict = xml_to_dict(child)
if child.tag in result:
if type(result[child.tag]) is list:
result[child.tag].append(child_dict)
else:
result[child.tag] = [result[child.tag], child_dict]
else:
result[child.tag] = child_dict
else:
result[child.tag] = child.text
return result
def parse_xml(xml_string):
root = ElementTree.fromstring(xml_string)
return xml_to_dict(root)
def get_search_id():
e = int(time.time() * 1000) << 64
t = int(random.uniform(0, 2147483646))
return base36encode((e + t))
def cookie_str_to_cookie_dict(cookie_str: str):
cookie_blocks = [cookie_block.split("=")
for cookie_block in cookie_str.split(";") if cookie_block]
return {cookie[0].strip(): cookie[1].strip() for cookie in cookie_blocks}
def cookie_jar_to_cookie_str(cookie_jar):
cookie_dict = requests.utils.dict_from_cookiejar(cookie_jar)
return ";".join([f"{key}={value}" for key, value in cookie_dict.items()])
def update_session_cookies_from_cookie(session: requests.Session, cookie: str):
cookie_dict = cookie_str_to_cookie_dict(cookie) if cookie else {}
if "a1" not in cookie_dict or "webId" not in cookie_dict:
# a1, web_id = get_a1_and_web_id()
cookie_dict |= {"a1": "187d2defea8dz1fgwydnci40kw265ikh9fsxn66qs50000726043",
"webId": "ba57f42593b9e55840a289fa0b755374"}
if "gid" not in cookie_dict:
cookie_dict |= {
"gid.sign": "PSF1M3U6EBC/Jv6eGddPbmsWzLI=",
"gid": "yYWfJfi820jSyYWfJfdidiKK0YfuyikEvfISMAM348TEJC28K23TxI888WJK84q8S4WfY2Sy"
}
new_cookies = requests.utils.cookiejar_from_dict(cookie_dict)
session.cookies = new_cookies
+1
View File
@@ -0,0 +1 @@
# 参考代码模块
+300
View File
@@ -0,0 +1,300 @@
import { sign } from './helper.ts';
enum FeedType {
RECOMMEND = 'homefeed_recommend',
FASION = 'homefeed.fashion_v3',
FOOD = 'homefeed.food_v3',
COSMETICS = 'homefeed.cosmetics_v3',
MOVIE = 'homefeed.movie_and_tv_v3',
CAREER = 'homefeed.career_v3',
EMOTION = 'homefeed.love_v3',
HOURSE = 'homefeed.household_product_v3',
GAME = 'homefeed.gaming_v3',
TRAVEL = 'homefeed.travel_v3',
FITNESS = 'homefeed.fitness_v3',
}
enum NoteType {
NORMAL = 'normal',
VIDEO = 'video',
}
enum SearchSortType {
GENERAL = 'general',
MOST_POPULAR = 'popularity_descending',
LATEST = 'time_descending',
}
enum SearchNoteType {
ALL = 0,
VIDEO = 1,
IMAGE = 2,
}
interface Note {
note_id: string;
title: string;
desc: string;
type: string;
user: Record<string, any>;
img_urls: string[];
video_url: string;
tag_list: any[];
at_user_list: any[];
collected_count: string;
comment_count: string;
liked_count: string;
share_count: string;
time: number;
last_update_time: number;
}
interface ErrorResponse {
success?: boolean;
code?: number;
msg?: string;
data?: any;
}
class XhsError extends Error {
response?: Response;
verify_type?: string;
verify_uuid?: string;
constructor(message: string, options?: { response?: Response; verify_type?: string | null; verify_uuid?: string | null }) {
super(message);
this.response = options?.response;
this.verify_type = options?.verify_type ?? '';
this.verify_uuid = options?.verify_uuid ?? '';
}
}
class DataFetchError extends XhsError {}
class IPBlockError extends XhsError {}
class NeedVerifyError extends XhsError {}
class SignError extends XhsError {}
export class XhsClientBase {
private timeout: number;
private externalSign?: (url: string, data: any, options: { a1?: string; web_session?: string }) => Record<string, string>;
private host: string;
private creatorHost: string;
private home: string;
private userAgent: string;
private cookies: Record<string, string> = {};
private headers: Record<string, string>;
constructor(
options: {
cookie?: string;
user_agent?: string;
timeout?: number;
sign?: (url: string, data: any, options: { a1?: string; web_session?: string }) => Record<string, string>;
} = {},
) {
this.timeout = options.timeout || 10 * 60 * 1000; // 10 minutes
this.externalSign = options.sign;
this.host = 'https://edith.xiaohongshu.com';
this.creatorHost = 'https://creator.xiaohongshu.com';
this.home = 'https://www.xiaohongshu.com';
this.userAgent = options.user_agent || 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36';
this.headers = {
'user-agent': this.userAgent,
'Content-Type': 'application/json',
};
if (options.cookie) {
this.cookie = options.cookie;
}
}
get cookie(): string {
return Object.entries(this.cookies)
.map(([key, value]) => `${key}=${value}`)
.join('; ');
}
set cookie(cookie: string) {
this.cookies = cookie.split(';').reduce((acc, pair) => {
const [key, value] = pair.trim().split('=');
if (key && value) {
acc[key] = value;
}
return acc;
}, {} as Record<string, string>);
}
get cookieDict(): Record<string, string> {
return { ...this.cookies };
}
private async request(method: string, url: string, options: RequestInit = {}): Promise<any> {
const controller = new AbortController();
const timeoutId = setTimeout(() => controller.abort(), this.timeout);
try {
const response = await fetch(url, {
method,
headers: {
...this.headers,
...options.headers,
cookie: this.cookie,
},
body: options.body,
signal: controller.signal,
});
clearTimeout(timeoutId);
if (!response.ok) {
throw new Error(`HTTP error! status: ${response.status}`);
}
if (response.status === 204) {
// No content
return response;
}
const data = await response.json().catch(() => response.text());
if (response.status === 471 || response.status === 461) {
const verify_type = response.headers.get('Verifytype');
const verify_uuid = response.headers.get('Verifyuuid');
throw new NeedVerifyError(`出现验证码,请求失败,Verifytype: ${verify_type},Verifyuuid: ${verify_uuid}`, { response, verify_type, verify_uuid });
}
if (data.success) {
return data.data || data.success;
} else if (data.code === 300007) {
// IP_BLOCK
throw new IPBlockError('IP blocked', { response });
} else if (data.code === 400002) {
// SIGN_FAULT
throw new SignError('Sign fault', { response });
} else {
throw new DataFetchError(data, { response });
}
} catch (error) {
clearTimeout(timeoutId);
if (error instanceof Error) {
if (error.name === 'AbortError') {
throw new Error(`Request timeout after ${this.timeout} seconds`);
}
throw error;
}
throw new Error('Unknown error occurred');
}
}
preHeaders(url: string, data?: any, isCreator: boolean = false): void {
if (isCreator) {
// Implement sign function in TypeScript or import it
const signs = sign(url, data, { a1: this.cookies.a1 });
this.headers['x-s'] = signs['x-s'];
this.headers['x-t'] = signs['x-t'];
this.headers['x-s-common'] = signs['x-s-common'];
} else if (this.externalSign) {
const signs = this.externalSign(url, data, {
a1: this.cookies.a1,
web_session: this.cookies.web_session || '',
});
Object.assign(this.headers, signs);
}
}
async get(uri: string, params?: Record<string, any>, isCreator: boolean = false, options: RequestInit = {}): Promise<any> {
let finalUri = uri;
if (params) {
const query = new URLSearchParams();
for (const [key, value] of Object.entries(params)) {
if (value !== undefined) {
query.append(key, String(value));
}
}
finalUri = `${uri}?${query.toString()}`;
}
this.preHeaders(finalUri, undefined, isCreator);
const url = `${isCreator ? this.creatorHost : this.host}${finalUri}`;
return this.request('GET', url, options);
}
async post(uri: string, data: any, isCreator: boolean = false, options: RequestInit = {}): Promise<any> {
this.preHeaders(uri, data, isCreator);
const url = `${isCreator ? this.creatorHost : this.host}${uri}`;
return this.request('POST', url, {
...options,
body: JSON.stringify(data),
});
}
async getNoteById(noteId: string): Promise<any> {
const data = { source_note_id: noteId, image_scenes: ['CRD_WM_WEBP'] };
const uri = '/api/sns/web/v1/feed';
const res = await this.post(uri, data);
return res.items[0].note_card;
}
async getNoteByIdFromHtml(noteId: string): Promise<any> {
const url = `${this.home}/explore/${noteId}`;
const response = await this.request('GET', url, {
headers: {
'user-agent': this.userAgent,
referer: `${this.home}/`,
},
});
if (typeof response === 'string') {
const html = response;
const stateMatch = html.match(/window\.__INITIAL_STATE__=({.*?})<\/script>/);
if (!stateMatch) {
throw new Error('Could not find initial state in HTML');
}
let state = stateMatch[1].replace(/undefined/g, '""');
if (state === '{}') {
throw new DataFetchError('Empty state');
}
// Implement transformJsonKeys in TypeScript if needed
const noteDict = this.transformJsonKeys(JSON.parse(state));
return noteDict.note.note_detail_map[noteId].note;
}
throw new DataFetchError('Invalid response');
}
private transformJsonKeys(data: any): any {
// Implement camelToUnderscore and transform logic here
// Similar to the Python version
return data; // Placeholder
}
// Implement all other methods similarly, converting Python to TypeScript
// For example:
async reportNoteMetrics(
noteId: string,
noteType: number,
noteUserId: string,
viewerUserId: string,
followedAuthor: number = 0,
reportType: number = 1,
staySeconds: number = 0,
): Promise<any> {
const uri = '/api/sns/web/v1/note/metrics_report';
const data = {
note_id: noteId,
note_type: noteType,
report_type: reportType,
stress_test: false,
viewer: { user_id: viewerUserId, followed_author: followedAuthor },
author: { user_id: noteUserId },
interaction: { like: 0, collect: 0, comment: 0, comment_read: 0 },
note: { stay_seconds: staySeconds },
other: { platform: 'web' },
};
return this.post(uri, data);
}
// Continue with all other methods...
}
+48
View File
@@ -0,0 +1,48 @@
export enum ErrorCode {
/** 网络连接异常,请检查网络设置或重启试试 */
IP_BLOCK = 300012,
/** 笔记状态异常,请稍后查看 */
NOTE_ABNORMAL = -510001,
/** 当前内容无法展示 */
NOTE_SECRETE_FAULT = -510001,
/** 浏览器异常,请尝试关闭/卸载风险插件或重启试试! */
SIGN_FAULT = 300015,
/** 登录已过期 */
SESSION_EXPIRED = -100
}
export class XhsError extends Error {
response?: Response;
verifyType?: string;
verifyUuid?: string;
constructor(
message: string,
options?: {
response?: Response;
verifyType?: string;
verifyUuid?: string;
}
) {
super(message);
this.response = options?.response;
this.verifyType = options?.verifyType;
this.verifyUuid = options?.verifyUuid;
}
}
export class DataFetchError extends XhsError {}
export class IPBlockError extends XhsError {}
export class SignError extends XhsError {}
export class NeedVerifyError extends XhsError {
constructor(
message: string,
options?: {
verifyType?: string;
verifyUuid?: string;
}
) {
super(message, options);
}
}
+401
View File
@@ -0,0 +1,401 @@
import { createHash } from 'crypto';
import fs from 'node:fs';
import { DOMParser } from 'xmldom';
// Helper functions
function randomStr(length: number): string {
const alphabet = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
return Array.from({ length }, () => alphabet.charAt(Math.floor(Math.random() * alphabet.length))).join('');
}
function getA1AndWebId(): [string, string] {
const d = Math.floor(Date.now()).toString(16) + randomStr(30) + '5' + '0' + '000';
const crc32 = (str: string): number => {
let crc = 0 ^ (-1);
for (let i = 0; i < str.length; i++) {
const char = str.charCodeAt(i);
crc = (crc >>> 8) ^ crc32Table[(crc ^ char) & 0xFF];
}
return (crc ^ (-1)) >>> 0;
};
const g = (d + crc32(d).toString()).slice(0, 52);
const webId = Array.from(new Uint8Array(createHash('md5').update(g).digest()))
.map(b => b.toString(16).padStart(2, '0')).join('');
return [g, webId];
}
// CRC32 table
const crc32Table = Array.from({ length: 256 }, (_, i) => {
let crc = i;
for (let j = 0; j < 8; j++) {
crc = crc & 1 ? 0xEDB88320 ^ (crc >>> 1) : crc >>> 1;
}
return crc;
});
// Image and video CDNs
const imgCdns = [
"https://sns-img-qc.xhscdn.com",
"https://sns-img-hw.xhscdn.com",
"https://sns-img-bd.xhscdn.com",
"https://sns-img-qn.xhscdn.com",
];
const videoCdns = [
"https://sns-video-qc.xhscdn.com",
"https://sns-video-hw.xhscdn.com",
"https://sns-video-bd.xhscdn.com",
"https://sns-video-qn.xhscdn.com",
];
// URL handling functions
function getImgUrlByTraceId(traceId: string, format: string = "png"): string {
return `${imgCdns[Math.floor(Math.random() * imgCdns.length)]}/${traceId}?imageView2/format/${format}`;
}
function getImgUrlsByTraceId(traceId: string, format: string = "png"): string[] {
return imgCdns.map(cdn => `${cdn}/${traceId}?imageView2/format/${format}`);
}
function getTraceId(imgUrl: string): string {
const parts = imgUrl.split('/');
const traceId = parts[parts.length - 1].split('!')[0];
return imgUrl.includes('spectrum') ? `spectrum/${traceId}` : traceId;
}
function getImgsUrlFromNote(note: any): string[] {
const imgs = note.image_list || [];
return imgs.map((img: any) => getImgUrlByTraceId(getTraceId(img.info_list[0].url)));
}
function getImgsUrlsFromNote(note: any): string[][] {
const imgs = note.image_list || [];
return imgs.map((img: any) => getImgUrlsByTraceId(img.trace_id));
}
function getVideoUrlFromNote(note: any): string {
if (!note.video) return '';
const originVideoKey = note.video.consumer.origin_video_key;
return `${videoCdns[Math.floor(Math.random() * videoCdns.length)]}/${originVideoKey}`;
}
function getVideoUrlsFromNote(note: any): string[] {
if (!note.video) return [];
const originVideoKey = note.video.consumer.origin_video_key;
return videoCdns.map(cdn => `${cdn}/${originVideoKey}`);
}
// File download
async function downloadFile(url: string, filename: string): Promise<void> {
const response = await fetch(url);
if (!response.ok) throw new Error(`Failed to download file: ${response.statusText}`);
const buffer = await response.arrayBuffer();
await fs.promises.writeFile(filename, Buffer.from(buffer));
}
// Path handling
function getValidPathName(text: string): string {
const invalidChars = '<>:"/\\|?*';
return text.replace(new RegExp(`[${invalidChars.replace(/([.*+?^=!:${}()|\[\]\/\\])/g, '\\$1')}]`, 'g'), '_');
}
// Signing functions
function mrc(e: string): number {
const ie = [
0, 1996959894, 3993919788, 2567524794, 124634137, 1886057615, 3915621685,
2657392035, 249268274, 2044508324, 3772115230, 2547177864, 162941995,
2125561021, 3887607047, 2428444049, 498536548, 1789927666, 4089016648,
2227061214, 450548861, 1843258603, 4107580753, 2211677639, 325883990,
1684777152, 4251122042, 2321926636, 335633487, 1661365465, 4195302755,
2366115317, 997073096, 1281953886, 3579855332, 2724688242, 1006888145,
1258607687, 3524101629, 2768942443, 901097722, 1119000684, 3686517206,
2898065728, 853044451, 1172266101, 3705015759, 2882616665, 651767980,
1373503546, 3369554304, 3218104598, 565507253, 1454621731, 3485111705,
3099436303, 671266974, 1594198024, 3322730930, 2970347812, 795835527,
1483230225, 3244367275, 3060149565, 1994146192, 31158534, 2563907772,
4023717930, 1907459465, 112637215, 2680153253, 3904427059, 2013776290,
251722036, 2517215374, 3775830040, 2137656763, 141376813, 2439277719,
3865271297, 1802195444, 476864866, 2238001368, 4066508878, 1812370925,
453092731, 2181625025, 4111451223, 1706088902, 314042704, 2344532202,
4240017532, 1658658271, 366619977, 2362670323, 4224994405, 1303535960,
984961486, 2747007092, 3569037538, 1256170817, 1037604311, 2765210733,
3554079995, 1131014506, 879679996, 2909243462, 3663771856, 1141124467,
855842277, 2852801631, 3708648649, 1342533948, 654459306, 3188396048,
3373015174, 1466479909, 544179635, 3110523913, 3462522015, 1591671054,
702138776, 2966460450, 3352799412, 1504918807, 783551873, 3082640443,
3233442989, 3988292384, 2596254646, 62317068, 1957810842, 3939845945,
2647816111, 81470997, 1943803523, 3814918930, 2489596804, 225274430,
2053790376, 3826175755, 2466906013, 167816743, 2097651377, 4027552580,
2265490386, 503444072, 1762050814, 4150417245, 2154129355, 426522225,
1852507879, 4275313526, 2312317920, 282753626, 1742555852, 4189708143,
2394877945, 397917763, 1622183637, 3604390888, 2714866558, 953729732,
1340076626, 3518719985, 2797360999, 1068828381, 1219638859, 3624741850,
2936675148, 906185462, 1090812512, 3747672003, 2825379669, 829329135,
1181335161, 3412177804, 3160834842, 628085408, 1382605366, 3423369109,
3138078467, 570562233, 1426400815, 3317316542, 2998733608, 733239954,
1555261956, 3268935591, 3050360625, 752459403, 1541320221, 2607071920,
3965973030, 1969922972, 40735498, 2617837225, 3943577151, 1913087877,
83908371, 2512341634, 3803740692, 2075208622, 213261112, 2463272603,
3855990285, 2094854071, 198958881, 2262029012, 4057260610, 1759359992,
534414190, 2176718541, 4139329115, 1873836001, 414664567, 2282248934,
4279200368, 1711684554, 285281116, 2405801727, 4167216745, 1634467795,
376229701, 2685067896, 3608007406, 1308918612, 956543938, 2808555105,
3495958263, 1231636301, 1047427035, 2932959818, 3654703836, 1088359270,
936918000, 2847714899, 3736837829, 1202900863, 817233897, 3183342108,
3401237130, 1404277552, 615818150, 3134207493, 3453421203, 1423857449,
601450431, 3009837614, 3294710456, 1567103746, 711928724, 3020668471,
3272380065, 1510334235, 755167117,
];
let o = -1;
const rightWithoutSign = (num: number, bit = 0): number => {
const val = num >>> bit;
const MAX32INT = 4294967295;
return (val + (MAX32INT + 1)) % (2 * (MAX32INT + 1)) - MAX32INT - 1;
};
for (let n = 0; n < 57; n++) {
o = ie[(o & 255) ^ e.charCodeAt(n)] ^ rightWithoutSign(o, 8);
}
return o ^ -1 ^ 3988292384;
}
// Base64 encoding
const lookup = [
"Z", "m", "s", "e", "r", "b", "B", "o", "H", "Q", "t", "N", "P", "+", "w", "O",
"c", "z", "a", "/", "L", "p", "n", "g", "G", "8", "y", "J", "q", "4", "2", "K",
"W", "Y", "j", "0", "D", "S", "f", "d", "i", "k", "x", "3", "V", "T", "1", "6",
"I", "l", "U", "A", "F", "M", "9", "7", "h", "E", "C", "v", "u", "R", "X", "5",
];
function tripletToBase64(e: number): string {
return (
lookup[63 & (e >> 18)] +
lookup[63 & (e >> 12)] +
lookup[(e >> 6) & 63] +
lookup[e & 63]
);
}
function encodeChunk(e: Uint8Array, t: number, r: number): string {
const m: string[] = [];
for (let b = t; b < r; b += 3) {
const n = (16711680 & (e[b] << 16)) +
((e[b + 1] << 8) & 65280) +
(e[b + 2] & 255);
m.push(tripletToBase64(n));
}
return m.join('');
}
function b64Encode(e: Uint8Array): string {
const P = e.length;
const W = P % 3;
const U: string[] = [];
const z = 16383;
let H = 0;
const Z = P - W;
while (H < Z) {
U.push(encodeChunk(e, H, Math.min(H + z, Z)));
H += z;
}
if (W === 1) {
const F = e[P - 1];
U.push(lookup[F >> 2] + lookup[(F << 4) & 63] + "==");
} else if (W === 2) {
const F = (e[P - 2] << 8) + e[P - 1];
U.push(lookup[F >> 10] + lookup[63 & (F >> 4)] + lookup[(F << 2) & 63] + "=");
}
return U.join('');
}
function encodeUtf8(e: string): Uint8Array {
const b: number[] = [];
const m = encodeURIComponent(e).replace(/%([0-9A-F]{2})/g, (match, p1) => {
b.push(parseInt(p1, 16));
return '';
});
for (let w = 0; w < m.length; w++) {
b.push(m.charCodeAt(w));
}
return new Uint8Array(b);
}
// Base36 encoding
function base36encode(number: number, alphabet = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ'): string {
if (!Number.isInteger(number)) {
throw new TypeError('number must be an integer');
}
let base36 = '';
let sign = '';
if (number < 0) {
sign = '-';
number = -number;
}
if (0 <= number && number < alphabet.length) {
return sign + alphabet[number];
}
while (number !== 0) {
const remainder = number % alphabet.length;
number = Math.floor(number / alphabet.length);
base36 = alphabet[remainder] + base36;
}
return sign + base36;
}
function base36decode(number: string): number {
return parseInt(number, 36);
}
// XML parsing
function xmlToDict(element: Element): Record<string, any> {
const result: Record<string, any> = {};
for (let i = 0; i < element.children.length; i++) {
const child = element.children[i];
if (child.children.length > 0) {
const childDict = xmlToDict(child);
if (child.tagName in result) {
if (Array.isArray(result[child.tagName])) {
result[child.tagName].push(childDict);
} else {
result[child.tagName] = [result[child.tagName], childDict];
}
} else {
result[child.tagName] = childDict;
}
} else {
result[child.tagName] = child.textContent;
}
}
return result;
}
function parseXml(xmlString: string): Record<string, any> {
const parser = new DOMParser();
const doc = parser.parseFromString(xmlString, "text/xml");
return xmlToDict(doc.documentElement);
}
// Search ID generation
function getSearchId(): string {
const e = Math.floor(Date.now()) << 64;
const t = Math.floor(Math.random() * 2147483646);
return base36encode(e + t);
}
// Cookie handling
function cookieStrToCookieDict(cookieStr: string): Record<string, string> {
return cookieStr.split(';').reduce((acc, cookieBlock) => {
const [key, value] = cookieBlock.trim().split('=');
if (key && value) acc[key] = value;
return acc;
}, {} as Record<string, string>);
}
function cookieJarToCookieStr(cookieJar: Record<string, string>): string {
return Object.entries(cookieJar).map(([key, value]) => `${key}=${value}`).join(';');
}
function updateSessionCookiesFromCookie(session: { cookies: Record<string, string> }, cookie: string): void {
const cookieDict = cookie ? cookieStrToCookieDict(cookie) : {};
if (!cookieDict.a1 || !cookieDict.webId) {
const [a1, webId] = getA1AndWebId();
cookieDict.a1 = a1;
cookieDict.webId = webId;
}
if (!cookieDict.gid) {
cookieDict['gid.sign'] = 'PSF1M3U6EBC/Jv6eGddPbmsWzLI=';
cookieDict.gid = 'yYWfJfi820jSyYWfJfdidiKK0YfuyikEvfISMAM348TEJC28K23TxI888WJK84q8S4WfY2Sy';
}
session.cookies = cookieDict;
}
// Main sign function
function sign(uri: string, data: any = null, options: { ctime?: number; a1?: string; b1?: string } = {}): {
'x-s': string;
'x-t': string;
'x-s-common': string;
} {
function h(n: string): string {
let m = '';
const d = 'A4NjFqYu5wPHsO0XTdDgMa2r1ZQocVte9UJBvk6/7=yRnhISGKblCWi+LpfE8xzm3';
for (let i = 0; i < 32; i += 3) {
const o = n.charCodeAt(i);
const g = i + 1 < 32 ? n.charCodeAt(i + 1) : 0;
const h = i + 2 < 32 ? n.charCodeAt(i + 2) : 0;
const x = ((o & 3) << 4) | (g >> 4);
let p = ((15 & g) << 2) | (h >> 6);
const v = o >> 2;
let b = h ? h & 63 : 64;
if (!g) {
p = 64;
b = 64;
}
m += d[v] + d[x] + d[p] + d[b];
}
return m;
}
const v = options.ctime || Math.floor(Date.now());
const rawStr = `${v}test${uri}${
data && typeof data === 'object'
? JSON.stringify(data, null, '')
: data || ''
}`;
const md5Str = createHash('md5').update(rawStr).digest('hex');
const x_s = h(md5Str);
const x_t = v.toString();
const common = {
s0: 5,
s1: '',
x0: '1',
x1: '3.2.0',
x2: 'Windows',
x3: 'xhs-pc-web',
x4: '2.3.1',
x5: options.a1 || '',
x6: x_t,
x7: x_s,
x8: options.b1 || '',
x9: mrc(x_t + x_s),
x10: 1,
};
const encodeStr = encodeUtf8(JSON.stringify(common, null, ''));
const x_s_common = b64Encode(encodeStr);
return {
'x-s': x_s,
'x-t': x_t,
'x-s-common': x_s_common,
};
}
// Export all functions
export {
sign,
getA1AndWebId,
getImgUrlByTraceId,
getImgUrlsByTraceId,
getTraceId,
getImgsUrlFromNote,
getImgsUrlsFromNote,
getVideoUrlFromNote,
getVideoUrlsFromNote,
downloadFile,
getValidPathName,
mrc,
b64Encode,
encodeUtf8,
base36encode,
base36decode,
parseXml,
getSearchId,
cookieStrToCookieDict,
cookieJarToCookieStr,
updateSessionCookiesFromCookie,
};
+9
View File
@@ -0,0 +1,9 @@
# sign 部分依赖
https://github.com/saifeiLee/xhs-js
## 继承核心模块去开发
```ts
import { XhsClient } from '@kevisual/xhs-core';
```
+45
View File
@@ -0,0 +1,45 @@
// ErrorTuple and ErrorEnum
const ErrorEnum = {
IP_BLOCK: { code: 300012, msg: '网络连接异常,请检查网络设置或重启试试' },
NOTE_ABNORMAL: { code: -510001, msg: '笔记状态异常,请稍后查看' },
NOTE_SECRETE_FAULT: { code: -510001, msg: '当前内容无法展示' },
SIGN_FAULT: { code: 300015, msg: '浏览器异常,请尝试关闭/卸载风险插件或重启试试!' },
SESSION_EXPIRED: { code: -100, msg: '登录已过期' },
};
// Custom error classes
class DataFetchError extends Error {
constructor(message) {
super(message);
this.message = message;
this.name = 'DataFetchError';
}
}
class IPBlockError extends Error {
constructor(message) {
super(message);
this.message = message;
this.name = 'IPBlockError';
}
}
class SignError extends Error {
constructor(message) {
super(message);
this.message = message;
this.name = 'SignError';
}
}
class NeedVerifyError extends Error {
constructor(message, verifyType = null, verifyUuid = null) {
super(message);
this.message = message;
this.name = 'NeedVerifyError';
this.verifyType = verifyType;
this.verifyUuid = verifyUuid;
}
}
export { ErrorEnum, DataFetchError, IPBlockError, SignError, NeedVerifyError };
+259
View File
@@ -0,0 +1,259 @@
const lookup = [
"Z",
"m",
"s",
"e",
"r",
"b",
"B",
"o",
"H",
"Q",
"t",
"N",
"P",
"+",
"w",
"O",
"c",
"z",
"a",
"/",
"L",
"p",
"n",
"g",
"G",
"8",
"y",
"J",
"q",
"4",
"2",
"K",
"W",
"Y",
"j",
"0",
"D",
"S",
"f",
"d",
"i",
"k",
"x",
"3",
"V",
"T",
"1",
"6",
"I",
"l",
"U",
"A",
"F",
"M",
"9",
"7",
"h",
"E",
"C",
"v",
"u",
"R",
"X",
"5",
]
function encodeUtf8(e) {
const b = [];
const m = encodeURIComponent(e).replace(/[!'()*]/g, c => `%${c.charCodeAt(0).toString(16).toUpperCase()}`);
let w = 0;
while (w < m.length) {
const T = m[w];
if (T === "%") {
const E = m.slice(w + 1, w + 3);
const S = parseInt(E, 16);
b.push(S);
w += 2;
} else {
b.push(T.charCodeAt(0));
}
w += 1;
}
return b;
}
function mrc(e) {
const ie = [
0, 1996959894, 3993919788, 2567524794, 124634137, 1886057615, 3915621685,
2657392035, 249268274, 2044508324, 3772115230, 2547177864, 162941995,
2125561021, 3887607047, 2428444049, 498536548, 1789927666, 4089016648,
2227061214, 450548861, 1843258603, 4107580753, 2211677639, 325883990,
1684777152, 4251122042, 2321926636, 335633487, 1661365465, 4195302755,
2366115317, 997073096, 1281953886, 3579855332, 2724688242, 1006888145,
1258607687, 3524101629, 2768942443, 901097722, 1119000684, 3686517206,
2898065728, 853044451, 1172266101, 3705015759, 2882616665, 651767980,
1373503546, 3369554304, 3218104598, 565507253, 1454621731, 3485111705,
3099436303, 671266974, 1594198024, 3322730930, 2970347812, 795835527,
1483230225, 3244367275, 3060149565, 1994146192, 31158534, 2563907772,
4023717930, 1907459465, 112637215, 2680153253, 3904427059, 2013776290,
251722036, 2517215374, 3775830040, 2137656763, 141376813, 2439277719,
3865271297, 1802195444, 476864866, 2238001368, 4066508878, 1812370925,
453092731, 2181625025, 4111451223, 1706088902, 314042704, 2344532202,
4240017532, 1658658271, 366619977, 2362670323, 4224994405, 1303535960,
984961486, 2747007092, 3569037538, 1256170817, 1037604311, 2765210733,
3554079995, 1131014506, 879679996, 2909243462, 3663771856, 1141124467,
855842277, 2852801631, 3708648649, 1342533948, 654459306, 3188396048,
3373015174, 1466479909, 544179635, 3110523913, 3462522015, 1591671054,
702138776, 2966460450, 3352799412, 1504918807, 783551873, 3082640443,
3233442989, 3988292384, 2596254646, 62317068, 1957810842, 3939845945,
2647816111, 81470997, 1943803523, 3814918930, 2489596804, 225274430,
2053790376, 3826175755, 2466906013, 167816743, 2097651377, 4027552580,
2265490386, 503444072, 1762050814, 4150417245, 2154129355, 426522225,
1852507879, 4275313526, 2312317920, 282753626, 1742555852, 4189708143,
2394877945, 397917763, 1622183637, 3604390888, 2714866558, 953729732,
1340076626, 3518719985, 2797360999, 1068828381, 1219638859, 3624741850,
2936675148, 906185462, 1090812512, 3747672003, 2825379669, 829329135,
1181335161, 3412177804, 3160834842, 628085408, 1382605366, 3423369109,
3138078467, 570562233, 1426400815, 3317316542, 2998733608, 733239954,
1555261956, 3268935591, 3050360625, 752459403, 1541320221, 2607071920,
3965973030, 1969922972, 40735498, 2617837225, 3943577151, 1913087877,
83908371, 2512341634, 3803740692, 2075208622, 213261112, 2463272603,
3855990285, 2094854071, 198958881, 2262029012, 4057260610, 1759359992,
534414190, 2176718541, 4139329115, 1873836001, 414664567, 2282248934,
4279200368, 1711684554, 285281116, 2405801727, 4167216745, 1634467795,
376229701, 2685067896, 3608007406, 1308918612, 956543938, 2808555105,
3495958263, 1231636301, 1047427035, 2932959818, 3654703836, 1088359270,
936918000, 2847714899, 3736837829, 1202900863, 817233897, 3183342108,
3401237130, 1404277552, 615818150, 3134207493, 3453421203, 1423857449,
601450431, 3009837614, 3294710456, 1567103746, 711928724, 3020668471,
3272380065, 1510334235, 755167117,
]
let o = -1
function rightWithoutSign(num, bit = 0) {
return (num >>> bit) | 0;
}
for (let n = 0; n < 57; n++) {
o = ie[(o & 255) ^ e.charCodeAt(n)] ^ rightWithoutSign(o, 8);
}
return o ^ -1 ^ 3988292384;
}
function encodeChunk(e, t, r) {
const m = [];
for (let b = t; b < r; b += 3) {
const n = (16711680 & (e[b] << 16)) +
((e[b + 1] << 8) & 65280) +
(e[b + 2] & 255);
m.push(tripletToBase64(n));
}
return m.join('');
}
function tripletToBase64(e) {
return (
lookup[63 & (e >> 18)] +
lookup[63 & (e >> 12)] +
lookup[(e >> 6) & 63] +
lookup[e & 63]
);
}
function b64Encode(e) {
const P = e.length;
const W = P % 3;
const U = [];
const z = 16383;
let H = 0;
const Z = P - W;
while (H < Z) {
U.push(encodeChunk(e, H, Math.min(H + z, Z)));
H += z;
}
if (W === 1) {
const F = e[P - 1];
U.push(lookup[F >> 2] + lookup[(F << 4) & 63] + "==");
} else if (W === 2) {
const F = (e[P - 2] << 8) + e[P - 1];
U.push(lookup[F >> 10] +
lookup[63 & (F >> 4)] +
lookup[(F << 2) & 63] +
"=");
}
return U.join("");
}
export {
getXCommon,
encodeUtf8,
mrc,
encodeChunk
};
function getXCommon(a1="", b1 = "", xS = undefined, xT = undefined) {
const common = {
s0: 5, // getPlatformCode
s1: "",
x0: "1", // localStorage.getItem("b1b1")
x1: "3.7.8-2", // version
x2: "Windows",
x3: "xhs-pc-web",
x4: "4.27.7",
x5: a1, // cookie of a1
x6: xT,
x7: xS,
x8: b1, // localStorage.getItem("b1")
x9: mrc(xT + xS + b1),
x10: 1, // getSigCount
};
const encodeStr = encodeUtf8(JSON.stringify(common));
const x_s_common = b64Encode(encodeStr);
return x_s_common;
}
function getSearchId() {
const e = BigInt(Date.now()) << 64n;
const t = Math.floor(Math.random() * 2147483647);
return base36encode(e + BigInt(t));
}
function base36encode(num) {
return num.toString(36).toUpperCase();
}
const SearchSortType = Object.freeze({
// default
GENERAL: { value: "general" },
// most popular
MOST_POPULAR: { value: "popularity_descending" },
// Latest
LATEST: { value: "time_descending" }
});
const SearchNoteType = Object.freeze({
// default
ALL: { value: 0 },
// only video
VIDEO: { value: 1 },
// only image
IMAGE: { value: 2 }
});
export {
// getXCommon,
// encodeUtf8,
// mrc,
// encodeChunk,
getSearchId,
SearchSortType,
SearchNoteType,
}
+425
View File
@@ -0,0 +1,425 @@
import axios from 'axios';
import qs from 'querystring';
import { get_xs } from './jsvmp/xhs';
import fs from 'fs';
import { getXCommon, getSearchId, SearchSortType, SearchNoteType } from './helper.js';
import { ErrorEnum, DataFetchError, IPBlockError, SignError, NeedVerifyError } from './exception';
const camelToUnderscore = (key) => {
return key.replace(/([A-Z])/g, '_$1').toLowerCase();
};
const transformJsonKeys = (jsonData) => {
const dataDict = typeof jsonData === 'string' ? JSON.parse(jsonData) : jsonData;
const dictNew = {};
for (const [key, value] of Object.entries(dataDict)) {
const newKey = camelToUnderscore(key);
if (!value) {
dictNew[newKey] = value;
} else if (typeof value === 'object' && !Array.isArray(value)) {
dictNew[newKey] = transformJsonKeys(value);
} else if (Array.isArray(value)) {
dictNew[newKey] = value.map((item) => (item && typeof item === 'object' ? transformJsonKeys(item) : item));
} else {
dictNew[newKey] = value;
}
}
return dictNew;
};
class XhsClient {
/**
* Constructor for XhsClient
* @param {Object} options - Configuration options
* @param {string} options.cookie - Cookie string for authentication
* @param {string} options.userAgent - User agent string for requests
* @param {number} options.timeout - Request timeout in milliseconds
* @param {string} options.proxies - Proxy settings
*/
constructor({ cookie = null, userAgent = null, timeout = 10000, proxies = null } = {}) {
this.proxies = proxies;
this.timeout = timeout;
this._host = 'https://edith.xiaohongshu.com';
this._creatorHost = 'https://creator.xiaohongshu.com';
this._customerHost = 'https://customer.xiaohongshu.com';
this.home = 'https://www.xiaohongshu.com';
this.userAgent = userAgent || 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36';
this.axiosInstance = axios.create({
timeout: this.timeout,
headers: {
'user-agent': this.userAgent,
'Content-Type': 'application/json',
},
});
if (cookie) {
this.cookie = cookie;
}
}
// Getter for cookie
get cookie() {
return this.axiosInstance.defaults.headers.Cookie;
}
// Setter for cookie
set cookie(cookie) {
this.axiosInstance.defaults.headers.Cookie = cookie;
}
// Getter for cookieDict
get cookieDict() {
const cookieStr = this.axiosInstance.defaults.headers.Cookie;
return cookieStr ? qs.parse(cookieStr.replace(/; /g, '&')) : {};
}
_preHeaders(url, data = null) {
let a1 = this.cookieDict.a1;
let b1 = '';
let x_s_result = get_xs(url, data, this.cookie);
const X_S = x_s_result['X-s'];
const X_t = x_s_result['X-t'].toString();
const X_S_COMMON = getXCommon(a1, b1, X_S, X_t);
// this.axiosInstance.defaults.headers['X-s'] = X_S;
// this.axiosInstance.defaults.headers['X-t'] = X_t;
// this.axiosInstance.defaults.headers['X-s-common'] = X_S_COMMON;
return {
headers: {
'X-s': X_S,
'X-t': X_t,
'X-s-common': X_S_COMMON,
},
};
}
getCookieMap() {
const cookie = this.cookie;
let cookieDict = {};
if (cookie) {
const cookieArray = cookie.split(';');
cookieArray.forEach((item) => {
const [key, value] = item.split('=');
const trimKey = key.trim();
if (trimKey) {
const _value = value ? value.trim() : '';
cookieDict[trimKey] = _value;
}
});
return cookieDict;
}
return {};
}
/**
* Get X-S and X-T
* @param {*} url
* @param {*} data
* @param {*} cookie
* @returns
*/
get_xs(url, data, cookie) {
return get_xs(url, data, cookie);
}
async request(method, url, config = {}) {
try {
const response = await this.axiosInstance({ method, url, ...config });
if (!response.data) return response;
// console.log('response', response)
if (response.status === 471 || response.status === 461) {
const verifyType = response.headers['verifytype'];
const verifyUuid = response.headers['verifyuuid'];
throw new NeedVerifyError(`出现验证码,请求失败,Verifytype: ${verifyType},Verifyuuid: ${verifyUuid}`, response, verifyType, verifyUuid);
}
const data = response.data;
if (data.success) {
return data.data || data.success;
} else if (data.code === ErrorEnum.IP_BLOCK.code) {
throw new IPBlockError(ErrorEnum.IP_BLOCK.msg, response);
} else if (data.code === ErrorEnum.SIGN_FAULT.code) {
throw new SignError(ErrorEnum.SIGN_FAULT.msg, response);
} else {
throw new DataFetchError(data, response);
}
} catch (error) {
if (error.response && (error.response.status === 471 || error.response.status) === 461) {
// Handle verification error
const verifyType = error.response.headers['verifytype'];
const verifyUuid = error.response.headers['verifyuuid'];
throw new NeedVerifyError(`出现验证码,请求失败,Verifytype: ${verifyType},Verifyuuid: ${verifyUuid}`, error.response, verifyType, verifyUuid);
}
throw error;
}
}
/**
*
* @param {*} uri
* @param {*} params
* @param {Object} config
* @param {*} [config.sign] - Whether to sign the request
* @param {boolean} [config.isCreator] - Whether the request is for a creator
* @param {boolean} [config.isCustomer] - Whether the request is for a customer
* @param {*} [config.headers] - XSEC token for authentication
* @returns
*/
async get(uri, params = null, config = {}) {
if (params) {
uri = `${uri}?${qs.stringify(params)}`;
}
if (config.sign) {
await config.sign(uri, data, config);
} else {
const { headers } = this._preHeaders(uri, null);
config = { ...config, headers: { ...config.headers, ...headers } };
}
let isCreator = config?.isCreator ?? false;
let isCustomer = config?.isCustomer ?? false;
let endpoint = this._host;
if (isCustomer) {
endpoint = this._customerHost;
} else if (isCreator) {
endpoint = this._creatorHost;
}
return this.request('GET', `${endpoint}${uri}`, config);
}
/**
*
* @param {*} uri
* @param {*} data
* @param {Object} config
* @param {*} [config.sign] - Whether to sign the request
* @param {boolean} [config.isCreator] - Whether the request is for a creator
* @param {boolean} [config.isCustomer] - Whether the request is for a customer
* @param {*} [config.headers] - XSEC token for authentication
* @returns
*/
async post(uri, data = null, config = {}) {
let jsonStr = data ? JSON.stringify(data) : null;
let endpoint = this._host;
if (config.sign) {
await config.sign(uri, data, config);
} else {
const { headers } = this._preHeaders(uri, data);
config = { ...config, headers: { ...config.headers, ...headers } };
}
let isCreator = config?.isCreator ?? false;
let isCustomer = config?.isCustomer ?? false;
if (isCustomer) {
endpoint = this._customerHost;
} else if (isCreator) {
endpoint = this._creatorHost;
}
if (data) {
return this.request('POST', `${endpoint}${uri}`, {
...config,
data: jsonStr,
headers: {
...config.headers,
'Content-Type': 'application/json',
},
});
}
return this.request('POST', `${endpoint}${uri}`, { ...config, data });
}
/**
* 获取笔记详情
* 注意: 需要xsec_token
* @param {string} noteId
* @returns
*/
async getNoteById(noteId, xsecToken, xsecSource = 'pc_feed') {
if (!xsecToken) {
throw new Error('xsecToken is required');
}
const data = {
source_note_id: noteId,
image_scenes: ['CRD_WM_WEBP'],
xsec_token: xsecToken,
xsec_source: xsecSource,
};
const uri = '/api/sns/web/v1/feed';
try {
const res = await this.post(uri, data);
return res.items[0].note_card;
} catch (error) {
console.error('Error fetching note:', error);
throw error;
}
}
async getNoteByIdFromHtml(noteId, xsecToken, xsecSource = 'pc_feed') {
const url = `https://www.xiaohongshu.com/explore/${noteId}?xsec_token=${xsecToken}&xsec_source=${xsecSource}`;
let html = '';
try {
const response = await this.axiosInstance.get(url, {
headers: {
'user-agent': this.userAgent,
referer: 'https://www.xiaohongshu.com/',
},
});
html = response.data;
const stateMatch = html.match(/window.__INITIAL_STATE__=({.*})<\/script>/);
if (stateMatch) {
const state = stateMatch[1].replace(/undefined/g, '""');
if (state !== '{}') {
const noteDict = transformJsonKeys(JSON.parse(state));
return noteDict.note.note_detail_map[noteId].note;
}
}
if (html.includes(ErrorEnum.IP_BLOCK.value)) {
throw new IPBlockError(ErrorEnum.IP_BLOCK.value);
}
throw new DataFetchError(html);
} catch (error) {
console.error('Error fetching note:', error);
fs.writeFileSync('a.html', html);
throw error;
}
}
async getSelfInfo() {
const uri = '/api/sns/web/v1/user/selfinfo';
return this.get(uri);
}
async getSelfInfoV2() {
const uri = '/api/sns/web/v2/user/me';
return this.get(uri);
}
async getUserInfo(userId) {
const uri = '/api/sns/web/v1/user/otherinfo';
const params = {
target_user_id: userId,
};
return this.get(uri, params);
}
/**
*
* @param {string} keyword 关键词
* @param {number} page 页码
* @param {number} pageSize 分页查询的数量
* @param {string} sort 搜索的类型,分为: general, popularity_descending, time_descending
* @param {number} noteType 笔记类型
* @returns
*/
async getNoteByKeyword(keyword, page = 1, pageSize = 20, sort = SearchSortType.GENERAL, noteType = SearchNoteType.ALL) {
const uri = '/api/sns/web/v1/search/notes';
const data = {
keyword: keyword,
page: page,
page_size: pageSize,
search_id: getSearchId(),
sort: sort.value,
note_type: noteType.value,
image_formats: ['jpg', 'webp', 'avif'],
ext_flags: [],
};
return this.post(uri, data);
}
/**
* 获取笔记评论
* @param {string} noteId 笔记id
* @param {string} cursor 分页查询的下标,默认为""
* @returns
*/
async getNoteComments(noteId, cursor = '') {
const uri = '/api/sns/web/v2/comment/page';
const params = {
note_id: noteId,
cursor: cursor,
};
return this.get(uri, params);
}
/**
* 获取用户笔记
* @param {*} userId
* @param {*} cursor
* @returns
*/
async getUserNotes(userId, cursor = '') {
const uri = '/api/sns/web/v1/user_posted';
const params = {
cursor: cursor,
num: 30,
user_id: userId,
image_scenes: 'FD_WM_WEBP',
};
return this.get(uri, params);
}
/**
* 获取账号@我通知
* @param {*} num
* @param {*} cursor
* @returns
*/
async getMentionNotifications(num = 20, cursor = '') {
const uri = '/api/sns/web/v1/you/mentions';
const params = { num: num, cursor: cursor };
return this.get(uri, params);
}
/**
* 获取点赞通知
* @param {*} num
* @param {*} cursor
* @returns
*/
async getLikeNotifications(num = 20, cursor = '') {
const uri = '/api/sns/web/v1/you/likes';
const params = { num: num, cursor: cursor };
return this.get(uri, params);
}
/**
* 获取关注通知
* @param {*} num
* @param {*} cursor
* @returns
*/
async getFollowNotifications(num = 20, cursor = '') {
const uri = '/api/sns/web/v1/you/connections';
const params = { num: num, cursor: cursor };
return this.get(uri, params);
}
async getUserInfoFromHtml(userId) {
const url = `https://www.xiaohongshu.com/user/profile/${userId}`;
try {
const response = await this.axiosInstance.get(url, {
headers: {
'user-agent': this.userAgent,
referer: 'https://www.xiaohongshu.com/',
},
});
const html = response.data;
const stateMatch = html.match(/window.__INITIAL_STATE__=({.*})<\/script>/);
if (stateMatch) {
const state = stateMatch[1].replace(/"undefined"/g, '"_"').replace(/\bundefined\b/g, '""');
if (state !== '{}') {
const parsedState = JSON.parse(state);
const userBasicInfo = transformJsonKeys(parsedState).user.user_page_data.basic_info;
return userBasicInfo;
}
}
return response.data;
} catch (error) {
console.error('Error fetching user info:', error);
throw error;
}
}
}
export { XhsClient };
File diff suppressed because it is too large. Load diff
+1
View File
@@ -0,0 +1 @@
export const cookie = "a1=19686f83a65uiloc0y7wv79une457hsjh5lt00dpe40000147626;abRequestId=0a794332-4561-5f49-93f7-780b8b028e1f;access-token-creator.xiaohongshu.com=customer.creator.AT-68c517498636784561614544frjvxzj7yu8iewie;agora_session=6a0031373435393132333637323735343733393437313634000000000000;customerClientId=536706778174172;galaxy_creator_session_id=OhpHDDSoADhNEhnH5LLnQpletFLApu1fd91f;galaxy.creator.beaker.session.id=1745912429847011598150;gid=yjKqYfK0qDyYyj2DDSqd4ujxyW9kvxIuT62ddkMWhElyuxq8yDd6hl888q2WYy88j8i80yYD;loadts=1746020512562;sec_poison_id=441c932e-a6ac-4d8d-97ae-beb14adb1929;unread={%22ub%22:%2267eaf1fe000000001202c3ea%22%2C%22ue%22:%226803aa37000000001c0319d8%22%2C%22uc%22:35};web_session=040069b2e9c511ca302086ca253a4bde8b1cd1;webBuild=4.62.3;webId=97e5f097499594cad49aa0bd1a8ed83f;websectiga=3633fe24d49c7dd0eb923edc8205740f10fdb18b25d424d2a2322c6196d2a4ad;x-user-id-creator.xiaohongshu.com=639d86590000000026006076;xsecappid=xhs-pc-web;acw_tc=0a00df6217460205042195762e721fba339a0dbe8e4738b961a5ff15e74619;"
+7
View File
@@ -0,0 +1,7 @@
// import { XhsClient } from '../src/index.js';
import { XhsClient } from '../dist/app';
import { cookie } from './common.ts';
const client = new XhsClient({ cookie } as any);
client.getSelfInfoV2().then((res) => {
console.log(res);
});
+2
View File
@@ -0,0 +1,2 @@
//npm.xiongxiao.me/:_authToken=${ME_NPM_TOKEN}
//registry.npmjs.org/:_authToken=${NPM_TOKEN}
+492
View File
@@ -0,0 +1,492 @@
<!doctype html><html><head><script formula-runtime >function e(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{},n=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.forEach(function(r){var n;n=t[r],r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n})}return e}function r(e,r){return r=null!=r?r:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):(function(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}),e}var t,n,a,o=function(t){var n="4.0.16",a="xhs-pc-web",o="4.62.3";return r(e({},t),{context_artifactName:"formula",context_artifactVersion:n||"unknown",measurement_data:r(e({},t.measurement_data),{packageName:a||"unknown",packageVersion:o||"unknown"})})},i=function(){if("undefined"!=typeof window){var e,r,t=null===(e=window.eaglet)||void 0===e?void 0:e.push;return t||(t=null===(r=window.insight)||void 0===r?void 0:r.push),t?function(e){return t(o(e),"ApmXrayTracker")}:void 0}},c="FORMULA_ASSETS_LOAD_ERROR",u=function(){var e=localStorage.getItem(c);return e?JSON.parse(e):[]};function s(e){try{var r=i();if(r)r(e);else{var t=u();if(t.length>=1e3)return;t.push(e),localStorage.setItem(c,JSON.stringify(t))}}catch(r){console.error({error:r,errorData:e})}}try{t=function(e,r,t){var a,o=function(e){if(e){var r="//fe-static.xhscdn.com";return -1!==e.indexOf(r)?"".concat(e.replace(r,"//cdn.xiaohongshu.com"),"?business=fe&scene=feplatform"):void 0}}(e);if(!o){s({measurement_name:"reload_resource_error",measurement_data:n(t,{retryErrorType:"newUrlError",timestamp:String(Date.now())})});return}"js"===r?(a=document.createElement("script")).src=o:"css"===r&&((a=document.createElement("link")).rel="stylesheet",a.href=o),a&&(a.dataset.formulaAssetRetry="1",document.head.appendChild(a),a.addEventListener("load",function(){s({measurement_name:"reload_resource_duration",measurement_data:n(t,{duration:Date.now()-new Date(Number(t.timestamp)).getTime(),retryResourceUrl:a.src||a.href})})}),a.addEventListener("error",function(){s({measurement_name:"reload_resource_error",measurement_data:n(t,{timestamp:String(Date.now()),retryErrorType:"retryOnloadError",retryResourceUrl:a.src||a.href})})}))},n=Object.assign,a=["resource/js/bundler-runtime.da9dfca2.js","resource/js/vendor-dynamic.3e7bc84b.js","resource/js/library-polyfill.5f7e25b2.js","resource/js/library-axios.435de88b.js","resource/js/library-vue.a552caa8.js","resource/js/vendor.621a7319.js","resource/js/index.e258c14c.js","resource/css/index.2681e011.css","resource/css/async/Notification.aa311d0c.css","resource/css/async/42.1b2bf9e1.css","resource/css/async/FeedToNote.a47e232f.css","resource/css/async/355.1a9a769f.css","resource/css/async/Note.19fbd08c.css","resource/css/async/minor.9cea1f52.css","resource/css/async/Explore.30c1e8ce.css","resource/css/async/937.de1aa713.css","resource/css/async/NPS.0fee7ba1.css","resource/css/async/User.3830129f.css","resource/css/async/953.272459c1.css","resource/css/async/Search.6e2c6bf7.css","resource/css/async/75.693a9a9c.css","resource/css/async/772.db47c221.css","resource/css/async/Login.c2772494.css","resource/css/async/Board.c56ea05c.css"],window.addEventListener("error",function(e){var r,n,o=e.target;if(o){var i=o.href||o.src;if(i){if(!(null===(r=o.dataset)||void 0===r?void 0:r.formulaCdnRetry)&&!a.some(function(e){return i.includes(e)}))return;var c=null===(n=o.dataset)||void 0===n?void 0:n.formulaAssetRetry,u="LINK"===o.tagName?"css":"js",l={measurement_name:"biz_load_error_count",measurement_data:{path:window.location.href,resourceType:u,resourceUrl:o.href||o.src||"-",timestamp:String(Date.now())}};c||(s(l),t(i,u,l.measurement_data))}}},!0),window.addEventListener("load",function(){try{var e=i();if(!e)return;var r=u();if(r.length>0){var t=!0,n=!1,a=void 0;try{for(var o,s=r[Symbol.iterator]();!(t=(o=s.next()).done);t=!0){var l=o.value;e(l)}}catch(e){n=!0,a=e}finally{try{t||null==s.return||s.return()}finally{if(n)throw a}}}localStorage.removeItem(c)}catch(e){console.error(e)}})}catch(e){console.error("formula assets retry error: ",e)}</script><script data-apm-fmp-pre-module>!function(e,r){try{var n="__FST__",t=["HTML","HEAD","META","LINK","SCRIPT","STYLE","NOSCRIPT"];e[n]=e[n]||{runned:!1,observer:null,mutaRecords:[],imgObserver:null,imgRecords:[],run:function(n){try{!n.runned&&(n.runned=!0,e.MutationObserver&&e.performance&&e.performance.now&&(n.observer=new e.MutationObserver((function(r){try{n.mutaRecords.push({mutations:r,startTime:e.performance.now()}),r.filter((function(e){var r=(e.target.nodeName||"").toUpperCase();return"childList"===e.type&&r&&-1===t.indexOf(r)&&e.addedNodes&&e.addedNodes.length})).forEaLine truncated
.reds-mask[data-v-54eb1bb4]{position:absolute;top:0;left:0;width:100%;height:100%;background-color:var(--mask-backdrop);z-index:-1}
.reds-lock-scroll,.reds-lock-scroll body,.reds-lock-scroll #app{overflow:hidden !important}
.reds-modal[data-v-f9867710]{display:flex;align-items:center;justify-content:center;position:fixed;top:0;left:0;width:100%;height:100%;z-index:1000002;box-sizing:border-box}.reds-modal[data-v-f9867710]{visibility:hidden;opacity:0;transition:opacity 200ms,visibility 200ms}.reds-modal-open[data-v-f9867710]{visibility:visible;opacity:1}
.reds-dialog-paper[data-v-fa27eb18]{box-sizing:border-box;background-color:var(--elevation-high-background)}.reds-dialog-paper[data-v-fa27eb18]:focus{outline:none}.reds-dialog-paper-bottom[data-v-fa27eb18]{position:absolute;left:0;right:0;bottom:0;margin-left:auto;margin-right:auto;width:100%;border-radius:12px 12px 0 0}.reds-dialog-paper-middle[data-v-fa27eb18]{border-radius:12px;width:270px;position:relative}.reds-dialog-paper-right[data-v-fa27eb18]{position:absolute;top:0;right:0;bottom:0;width:80%;max-width:450px}.reds-dialog-paper-middle[data-v-fa27eb18]{transition:transform 200ms cubic-bezier(.42,0,.58,1);transform:translate3d(0,16px,0)}.reds-modal-open .reds-dialog-paper-middle[data-v-fa27eb18]{transform:translate3d(0,0,0)}.reds-dialog-paper-bottom[data-v-fa27eb18]{transition:transform 200ms cubic-bezier(.42,0,.58,1);transform:translate3d(0,100%,0)}.reds-modal-open .reds-dialog-paper-bottom[data-v-fa27eb18]{transform:translate3d(0,0,0)}.reds-dialog-paper-right[data-v-fa27eb18]{transition:transform 200ms cubic-bezier(.42,0,.58,1);transform:translate3d(100%,0,0)}.reds-modal-open .reds-dialog-paper-right[data-v-fa27eb18]{transform:translate3d(0,0,0)}
.reds-text.left[data-v-a847e398]{text-align:left}.reds-text.center[data-v-a847e398]{text-align:center}.reds-text.right[data-v-a847e398]{text-align:right}.reds-text.line-clamp-1[data-v-a847e398]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.reds-text.line-clamp-2[data-v-a847e398],.reds-text.line-clamp-3[data-v-a847e398],.reds-text.line-clamp-4[data-v-a847e398]{word-break:break-all;display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden}.reds-text.line-clamp-2[data-v-a847e398]{-webkit-line-clamp:2}.reds-text.line-clamp-3[data-v-a847e398]{-webkit-line-clamp:3}.reds-text.line-clamp-4[data-v-a847e398]{-webkit-line-clamp:4}.reds-text.fs10[data-v-a847e398]{font-size:12PX;transform-origin:0 50%;transform:scale(.8333333333333334)}.reds-text.fs10.center[data-v-a847e398]{transform-origin:50% 50%}.reds-text.fs10.right[data-v-a847e398]{transform-origin:100% 50%}.fw400[data-v-a847e398]{font-weight:400}.fw600[data-v-a847e398]{font-weight:600}.ff_number[data-v-a847e398]{font-family:vars('RED Number')}.ff_number_medium[data-v-a847e398]{font-family:vars('RED Number Medium')}.ff_number_bold[data-v-a847e398]{font-family:vars('RED Number Bold')}.fs10[data-v-a847e398]{font-size:10px}.fs12[data-v-a847e398]{font-size:12px}.fs14[data-v-a847e398]{font-size:14px}.fs16[data-v-a847e398]{font-size:16px}.fs18[data-v-a847e398]{font-size:18px}.fs20[data-v-a847e398]{font-size:20px}.fs24[data-v-a847e398]{font-size:24px}.fs32[data-v-a847e398]{font-size:32px}.lh12[data-v-a847e398]{line-height:12px}.lh16[data-v-a847e398]{line-height:16px}.lh18[data-v-a847e398]{line-height:18px}.lh20[data-v-a847e398]{line-height:20px}.lh22[data-v-a847e398]{line-height:22px}.lh24[data-v-a847e398]{line-height:24px}.lh26[data-v-a847e398]{line-height:26px}.lh28[data-v-a847e398]{line-height:28px}.lh30[data-v-a847e398]{line-height:30px}.lh32[data-v-a847e398]{line-height:32px}.lh38[data-v-a847e398]{line-height:38px}.lh40[data-v-a847e398]{line-height:40px}.lh52[data-v-a847e398]{line-height:52px}
.reds-dialog-button[data-v-93fd2b7e]{position:relative;height:48px;width:100%;white-space:nowrap;padding:8px 16px;display:flex;box-sizing:border-box;align-items:center;justify-content:center;background-color:transparent;border:none;cursor:pointer}.reds-dialog-button[data-v-93fd2b7e]:active{background-color:var(--color-tertiary-label)}.reds-dialog-button.primary[data-v-93fd2b7e]{color:var(--color-red)}.reds-dialog-button.secondary[data-v-93fd2b7e]{color:var(--color-tertiary-label)}
.reds-dialog-button-group[data-v-f6941e10]{margin-top:20px;display:flex;position:relative}.reds-dialog-button-group.row[data-v-f6941e10]{flex-direction:row}.reds-dialog-button-group.row[data-v-f6941e10] .reds-dialog-button{flex:1}.reds-dialog-button-group.column[data-v-f6941e10]{flex-direction:column}.reds-dialog-button-group.row[data-v-f6941e10] .reds-dialog-button + .reds-dialog-button::before{content:"";position:absolute;background-color:var(--color-primary-label);opacity:.1;top:0;left:0;width:1PX;height:100%;transform:translateX(-.5PX) scaleX(.5)}.reds-dialog-button-group[data-v-f6941e10]::before,.reds-dialog-button-group.column[data-v-f6941e10] .reds-dialog-button + .reds-dialog-button::before{content:"";position:absolute;background-color:var(--color-primary-label);opacity:.1;left:0;top:0;width:100%;height:1PX;transform:translateY(-.5PX) scaleY(.5)}
.reds-dialog-title{padding-left:20px;padding-right:20px;margin-bottom:4px}
.reds-dialog-content{margin-top:20px;margin-bottom:20px;padding-left:20px;padding-right:20px}
.reds-image-container{position:relative;display:inline-block;vertical-align:middle}.reds-image-container.white{background-color:#fff}.reds-image-container.gray{background-color:#f5f5f5}.reds-image-container.transparent{background:transparent}.reds-image-container .loading{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.reds-image-container.responsive,.reds-img-placeholder{display:block}.reds-img-box,.reds-img{position:absolute;top:0;left:0;width:100%;height:100%;border-radius:inherit}.reds-img{object-fit:cover}.reds-img:not([data-load-status='loaded']){visibility:hidden}.reds-img.animated{opacity:0;transition-duration:150ms;transition-timing-function:ease-out}.reds-img.animated[data-load-status='loaded']{opacity:1}
.reds-progress-indicator{display:inline-block}.reds-progress-indicator__media-box{position:relative;width:40px;height:40px}.reds-progress-indicator__media-box__text{color:#333;width:25px;height:16px;position:absolute;font-size:$FontSizeT3;line-height:16px;-webkit-user-select:none;user-select:none;top:16px;left:12px}.reds-progress-indicator__media-box-circle{transform:rotate(-90deg)}.reds-progress-indicator__media-box-circle--inactive{stroke:var(--color-border)}.reds-progress-indicator__media-spinner{display:flex;justify-content:center;align-items:center;width:24px;height:24px}.reds-progress-indicator__media-spinner__icon path{transform-origin:50% 50%;animation:reds-progress-indicator-spinner-rotate 1.5s linear infinite;fill:#333}.reds-progress-indicator__activity-indicator{width:24px;height:24px}.reds-progress-indicator__page-loading{z-index:999;width:22px;height:22px}.reds-progress-indicator__page-loading.has-background{width:44px;height:44px;background-color:var(--color-active-background);border-radius:8px}@keyframes reds-progress-indicator-spinner-rotate{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}
.reds-avatar-live{position:absolute;left:50%;bottom:0;font-style:normal;white-space:nowrap;border-radius:60PX;transform:translate(-50%,50%) scale(.5);color:rgba(255,255,255,0.99);background-color:#ff2e4d;overflow:hidden}.reds-avatar-live-animation::before{content:"";border-radius:60PX;position:absolute;width:10px;height:50px;left:-100px;background-image:linear-gradient(to right,transparent,rgba(255,255,255,0.5),transparent);animation:searchLights .6s ease-in .1s 2}.reds-avatar.size-s .reds-avatar-live{font-size:14px;line-height:20px;padding:0 6px;margin-bottom:2px}.reds-avatar.size-m .reds-avatar-live{font-size:16px;line-height:24px;padding:0 8px;margin-bottom:2px}.reds-avatar.size-l .reds-avatar-live{font-size:20px;line-height:32px;padding:0 12px;margin-bottom:2px}.reds-avatar.size-auto .reds-avatar-live,.reds-avatar.size-xl .reds-avatar-live{font-size:24px;line-height:40px;padding:0 16px;margin-bottom:3px}.reds-avatar .animated{animation:waveInSide 1.8s cubic-bezier(.4,.05,.6,.95) infinite}.reds-avatar .animated-outside{opacity:0;animation:waveOutSide 1.8s cubic-bezier(.5,.05,.95,.75) infinite}@keyframes searchLights{0%{left:-20px;top:0}100%{left:100%;top:0}}@keyframes waveInSide{0%{transform:scale(1)}50%{transform:scale(1.1)}100%{transform:scale(1)}}@keyframes waveOutSide{0%{transform:scale(1.1);opacity:0}50%{transform:scale(1.1);opacity:0}51%{transform:scale(1.1);opacity:1}75%{border-width:1px;opacity:1}100%{transform:scale(1.2);border-width:0;box-shadow:inset 0 0 0 .5px currentColor;opacity:0}}
.reds-avatar{position:relative;border-radius:1000PX;color:#fff;background-color:currentColor;box-shadow:0 0 1PX rgba(204,204,204,0.1);display:inline-block;vertical-align:middle}.reds-avatar-img-box{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;border-radius:inherit;align-items:center;justify-content:center;overflow:hidden}.reds-avatar-img-box img{object-fit:cover;display:block;height:100%;width:100%}.reds-avatar.responsive{display:inline-block}.reds-avatar.size-auto{display:block;flex:1;min-width:0}.reds-avatar-border::before{content:"";display:block;padding-top:100%}.reds-avatar-border{position:absolute;top:-50%;left:-50%;width:200%;transform:scale(.5);border-radius:inherit;box-sizing:border-box}.reds-avatar-outline{position:absolute;border-radius:inherit;top:0;left:0;width:100%;box-sizing:border-box}.reds-avatar-outline::before{content:"";display:block;padding-top:100%}.reds-avatar-outline.red{color:#ff2e4d}.reds-avatar-outline.yellow{color:#ffe900}.reds-avatar-outline.white{color:#fff}.reds-avatar.size-s .reds-avatar-outline,.reds-avatar-outline.s{top:-1px;left:-1px;width:calc(100% + 2px);border:1PX solid currentColor}.reds-avatar.size-m .reds-avatar-outline,.reds-avatar-outline.m{top:-2px;left:-2px;width:calc(100% + 4px);border:1PX solid currentColor}.reds-avatar.size-l .reds-avatar-outline,.reds-avatar-outline.l{top:-3px;left:-3px;width:calc(100% + 6px);box-shadow:inset 0 0 0 1.5PX currentColor}.reds-avatar.size-auto .reds-avatar-outline,.reds-avatar.size-xl .reds-avatar-outline,.reds-avatar-outline.xl{box-shadow:inset 0 0 0 1.5PX currentColor;top:-3px;left:-3px;width:calc(100% + 6px)}
.reds-dialog-avatar[data-v-077434fe]{margin:0 auto 16px}.reds-dialog-avatar.responsive.reds-avatar[data-v-077434fe]{display:block}
.reds-button-new{position:relative;cursor:pointer;-webkit-user-select:none;user-select:none;white-space:nowrap;outline:none;background:none;border:none;vertical-align:middle;text-align:center;display:inline-block;padding:0;border-radius:100px;font-weight:500}.reds-button-new-box{display:flex;align-items:center;justify-content:center;position:relative;font-weight:500}.reds-button-new.primary{background-color:#ff2e4d;color:#fff}.reds-button-new.primary.active{color:#000;background-color:rgba(0,0,0,0.04)}.reds-button-new.outlined{background-color:#fff;color:#ff2e4d;border:1px solid #ff2e4d}.reds-button-new.outlined.active{color:#000;border-color:rgba(0,0,0,0.1)}.reds-button-new.outlined.disabled{color:var(--color-quaternary-label);border:1px solid var(--color-quaternary-label)}.reds-button-new.text{border:none;background:var(--elevation-high-background);color:#ff2e4d}.reds-button-new.text.active{background-color:#000;color:$White;border:1px solid var(--color-border)}.reds-button-new.text.disabled{color:var(--color-quaternary-label)}.reds-button-new.dark{background-color:rgba(37,37,42,0.99);color:var(--color-inverted-label)}.reds-button-new.filledGray{background-color:var(--color-active-background)}.reds-button-new.filledGray.disabled{color:var(--color-quaternary-label)}.reds-button-new.outlinedGray{border:1px solid var(--color-border)}.reds-button-new.outlinedGray.disabled{color:var(--color-quaternary-label)}.reds-button-new.mini{font-size:$FontSizeT3;line-height:$LineHeightT3Label;padding:0 12px;height:24px}.reds-button-new.mini .reds-icon,.reds-button-new.mini img{width:16px;height:16px;margin-right:4px;font-size:$FontSizeT3}.reds-button-new.small{font-size:$FontSizeT3;line-height:$LineHeightT3Label;padding:0 14px;height:28px}.reds-button-new.small.text{height:$LineHeightT3Label}.reds-button-new.small .reds-icon,.reds-button-new.small img{width:16px;height:16px;margin-right:4px;font-size:$FontSizeT3}.reds-button-new.medium{font-size:$FontSizeT2;line-height:18px;padding:0 20px;height:36px}.reds-button-new.medium .reds-icon,.reds-button-new.medium img{width:20px;height:20px;margin-right:6px;font-size:$FontSizeT2}.reds-button-new.large{font-size:16px;font-weight:600;line-height:16px;padding:0 24px;height:40px}.reds-button-new.large.text{height:18px}.reds-button-new.large .reds-icon,.reds-button-new.large img{width:20px;height:20px;margin-right:8px;font-size:$FontSizeT2}.reds-button-new.extraLarge{font-size:16px;line-height:20px;padding:0 32px;height:48px}.reds-button-new.extraLarge.text{height:20px}.reds-button-new.extraLarge .reds-icon,.reds-button-new.extraLarge img{width:24px;height:24px;margin-right:10px;font-size:16px}.reds-button-new.mini.has-icon{padding-left:8px}.reds-button-new.small.has-icon{padding-left:10px}.reds-button-new.medium.has-icon{padding-left:12px}.reds-button-new.large.has-icon{padding-left:16px}.reds-button-new.extraLarge.has-icon{padding-left:20px}.reds-button-new.has-icon.pure-icon{border-radius:50%}.reds-button-new.has-icon.pure-icon .reds-button-new-box{padding:0}.reds-button-new.has-icon.pure-icon .reds-button__icon{margin-right:0}.reds-button-new.has-icon.pure-icon.mini{padding:0 4px}.reds-button-new.has-icon.pure-icon.small{padding:0 6px}.reds-button-new.has-icon.pure-icon.medium{padding:0 8px}.reds-button-new.has-icon.pure-icon.large{padding:0 10px}.reds-button-new.has-icon.pure-icon.extraLarge{padding:0 12px}.reds-button-new.block{display:block;width:100%}.dark-mode .reds-button-new.outlined{background-color:inherit}.dark-mode .reds-button-new.outlined.disabled{color:var(--color-quaternary-label);border-color:var(--color-quaternary-label)}.dark-mode .reds-button-new.filledGray,.dark-mode .reds-button-new.outlinedGray{color:#fff}.dark-mode .reds-button-new.text{background-color:#fff}.dark-mode .reds-button-new.disabled.filledGray,.dark-mode .reds-button-new.disabled.outlinedGray{color:var(--color-quaternary-label)}.reds-button-new.disabled{cursor:not-allowed}.reds-button-new.primary.disabled,.reds-button-new.dark.disabled{opacity:.6}.reds-button-new.text{padding:0}
.reds-alert-mask-slide-fade-enter-active,.reds-alert-mask-slide-fade-leave-active{transition:opacity .1s ease}.reds-alert-mask-slide-fade-enter-from,.reds-alert-mask-slide-fade-leave-to{opacity:0}.reds-alert-mask-fade-enter-active,.reds-alert-mask-fade-leave-active{transition:opacity .2s ease}.reds-alert-slide-fade-enter-from,.reds-alert-slide-fade-leave-to{opacity:0}.reds-alert{position:relative}.reds-alert .reds-alert-mask{position:fixed;top:0;left:0;z-index:99;width:100%;height:100%;background-color:var(--mask-backdrop)}.reds-alert .reds-alert-wrapper{position:fixed;z-index:999;top:50%;left:0;right:0;margin:0 auto;transform:translateY(-50%);width:270px;min-height:114px;overflow:hidden;border-radius:12px;max-width:calc(100vw - 16 * 2);background-color:var(--elevation-high-background);box-shadow:var(--elevation-high-shadow);-webkit-backface-visibility:hidden;backface-visibility:hidden}.reds-alert .reds-alert-wrapper.has-content .reds-alert-title{padding-bottom:4px}.reds-alert .reds-alert-wrapper.slot-content .reds-alert-title{padding-bottom:16px}.reds-alert .reds-alert-wrapper.has-media .reds-alert-title{padding-bottom:20px}.reds-alert .reds-alert-wrapper .reds-alert-title{color:var(--color-primary-label);padding-top:20px;padding-bottom:26px;font-weight:500;font-size:16px;line-height:26px;text-align:center}.reds-alert .reds-alert-wrapper .reds-alert-content{position:relative}.reds-alert .reds-alert-wrapper .reds-alert-content .reds-dialog__message__overlay{position:fixed;left:0;bottom:70px;width:100%;height:40px;background:linear-gradient(180deg,rgba(255,255,255,0) 0%,var(--color-primary-label) 100%)}.reds-alert .reds-alert-wrapper .reds-alert-content .reds-dialog__message{padding-top:8px;color:var(--color-tertiary-label);flex:1;max-height:120px;padding:0 20px 0 20px;overflow-y:auto;font-size:14px;line-height:20px;white-space:pre-wrap;text-align:center;word-wrap:break-word;margin-bottom:20px;text-wrap:balance}.reds-alert .reds-alert-wrapper .reds-alert-content .reds-dialog__message.left{text-align:left}.reds-alert .reds-alert-wrapper .reds-alert-footer{background:var(--elevation-high-background);border-top:1px solid var(--color-border);display:flex;align-items:center}.reds-alert .reds-alert-wrapper .reds-alert-footer.reds-alert-footer__round-button{border:none;padding:0 20px 20px 20px}.reds-alert .reds-alert-wrapper .reds-alert-footer.reds-alert-footer__round-button.vertical{padding-bottom:16px}.reds-alert .reds-alert-wrapper .reds-alert-footer.vertical.reds-alert-footer__round-button .reds-alert-footer__left.reds-button-new.text{height:16px;margin-top:12px}.reds-alert .reds-alert-wrapper .reds-alert-footer.vertical{flex-direction:column-reverse}.reds-alert .reds-alert-wrapper .reds-alert-footer.vertical .reds-alert-footer__left,.reds-alert .reds-alert-wrapper .reds-alert-footer.vertical .reds-alert-footer__right{width:100%}.reds-alert .reds-alert-wrapper .reds-alert-footer.vertical .reds-alert-footer__right::before{border-left:none;width:100%;height:1px;top:100%;transform:translateY(0);background-color:rgba(0,0,0,0.08)}.reds-alert .reds-alert-wrapper .reds-alert-footer.mono .reds-button-new.text .reds-button-new-text{color:var(--color-secondary-label);font-weight:400}.reds-alert .reds-alert-wrapper .reds-alert-footer .reds-alert-footer__left{width:50%}.reds-alert .reds-alert-wrapper .reds-alert-footer .reds-alert-footer__left.reds-button-new.text{height:48px}.reds-alert .reds-alert-wrapper .reds-alert-footer .reds-alert-footer__left .reds-button-new-text{color:var(--color-tertiary-label);font-weight:400}.reds-alert .reds-alert-wrapper .reds-alert-footer .reds-alert-footer__right{width:50%}.reds-alert .reds-alert-wrapper .reds-alert-footer .reds-alert-footer__right.reds-button-new.text{height:48px}.reds-alert .reds-alert-wrapper .reds-alert-footer .reds-alert-footer__right.block{width:100%}.reds-alert .reds-alert-wrapper .reds-alert-footer .reds-alert-footer__right::before{position:absolute;top:50%;left:0;width:1px;height:28px;border-left:1px solid rgba(0,0,0,0.08);transform:translateY(-50%);content:" "}.reds-alert .reds-alert-wrapper .reds-alert-footer .reds-alert-footer__right.rounded::before{opacity:0}.reds-alert .reds-alert-wrapper__media__asset{display:flex;justify-content:center;padding-top:20px}
[data-v-76bb4847] .reds-alert-mask{background-color:var(--mask-backdrop)}[data-v-76bb4847] .reds-alert-footer{border-top:1px solid var(--color-border);width:calc(100% - 12px);margin:0 auto;padding:6px 0 6px 0}[data-v-76bb4847] .reds-alert-title{color:var(--color-primary-label) !important;line-height:120%;padding-top:24px !important;font-weight:600 !important;line-height:normal !important}[data-v-76bb4847] .reds-alert-content{line-height:120%;font-size:16px}.foot-btns[data-v-76bb4847]{width:100%;display:flex;align-items:center;justify-content:center;flex-direction:column}.foot-btns .foot-btn[data-v-76bb4847]{width:100%;display:flex;align-items:center;justify-content:center;height:40px;font-weight:600;font-size:16px;cursor:pointer;color:var(--color-secondary-label)}.foot-btns .foot-btn.strong[data-v-76bb4847]{color:var(--color-red)}.foot-btns .foot-btn.strong[data-v-76bb4847]:hover{background:var(--color-tinted-red);color:var(--color-red)}.foot-btns .foot-btn[data-v-76bb4847]:hover{background-color:var(--color-active-background);border-radius:8px;color:var(--color-primary-label)}
.icon-btn-wrapper{width:var(--54fadfd9);height:var(--30922174);border-radius:999px;display:flex;align-items:center;justify-content:center;cursor:pointer;color:var(--color-secondary-label)}.icon-btn-wrapper:hover{border-radius:999px;color:var(--color-primary-label);background:var(--color-active-background)}
.reds-toast-container[data-v-16e62945]{transition:opacity 400ms}.fade-enter-active[data-v-16e62945]{opacity:1}.fade-leave-active[data-v-16e62945]{opacity:0}.reds-toast[data-v-16e62945]{font-size:16px;line-height:120%;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;position:fixed;z-index:1001000;max-width:300px;pointer-events:none;border-radius:1000PX;padding:12px 16px;margin-top:4px;margin-bottom:4px;color:var(--color-inverted-label);background:var(--material-inverted-background);-webkit-backdrop-filter:var(--material-filter);backdrop-filter:var(--material-filter)}.top-left[data-v-16e62945]{top:5%;left:0}.top-center[data-v-16e62945]{top:5%;left:50%;transform:translateX(-50%)}.top-right[data-v-16e62945]{top:5%;right:0}.center[data-v-16e62945]{top:50%;left:50%;transform:translate(-50%,-50%)}.bottom-left[data-v-16e62945]{bottom:5%;left:0}.bottom-center[data-v-16e62945]{bottom:5%;left:50%;transform:translateX(-50%)}.bottom-right[data-v-16e62945]{bottom:5%;right:0}
.reds-sticky[data-v-73916935]{z-index:5 !important;background:var(--mask-paper)}.reds-sticky-box.sticky .reds-sticky[data-v-73916935]{position:fixed;z-index:10010;top:0;width:100%;box-sizing:border-box}
.reds-uploader__upload{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;box-sizing:border-box;width:72px;height:72px;border-radius:8px;border:1px solid var(--color-border);color:var(--color-tertiary-label);font-size:12px;font-weight:400;line-height:120%}.reds-uploader__upload:hover{background:var(--color-active-background);color:var(--color-secondary-label)}.reds-uploader__upload.four{width:78px;height:78px}.reds-uploader__upload.three{width:109px;height:109px}.reds-uploader__upload.two{width:166px;height:94px}.reds-uploader__upload .reds-uploader__input{position:absolute;top:0;left:0;width:100%;height:100%;cursor:pointer;opacity:0;overflow:hidden}.reds-uploader__upload .reds-uploader__input.reds-uploader__input_disabled{cursor:not-allowed}.reds-uploader__upload .reds-uploader__desc{margin:0}.reds-uploader__upload .reds-uploader_input_desc{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:6px;position:absolute;top:0;left:0;width:100%;height:100%}.reds-uploader__upload .reds-uploader_input_desc:hover{color:var(--color-secondary-label)}.reds-uploader__upload__add-icon path{fill:$ThemeDescription;fill-opacity:1}.reds-uploader__upload--disabled{opacity:.5;cursor:not-allowed}.reds-uploader__upload--disabled:hover{background:transparent;color:var(--color-tertiary-label);opacity:.5}.reds-uploader__upload--disabled .reds-uploader__desc{color:$ThemeDisabled}.reds-uploader__upload--disabled .reds-uploader__upload__add-icon path{fill:$ThemeDisabled}.reds-uploader__wrapper{display:flex;align-items:center;flex-wrap:wrap;gap:12px}.reds-uploader__wrapper .reds-uploader__preview{position:relative;border-radius:8px;border:1px solid var(--color-border)}.reds-uploader__wrapper .reds-uploader__preview.four:nth-of-type(4n){margin-right:0}.reds-uploader__wrapper .reds-uploader__preview.three:nth-of-type(3n){margin-right:0}.reds-uploader__wrapper .reds-uploader__preview.two{margin-right:0}.reds-uploader__wrapper .reds-uploader__preview.two:nth-of-type(2n){margin-right:0}.reds-uploader__wrapper .reds-uploader__preview.two:nth-of-type(2n)--narrowMargin{margin-bottom:0}.reds-uploader__wrapper .reds-uploader__preview__image{width:100%;height:100%}.reds-uploader__wrapper .reds-uploader__preview__image__content{border-radius:7px;width:100%;height:100%;visibility:visible}.reds-uploader__wrapper .reds-uploader__preview__delete{display:flex;align-items:center;justify-content:center;position:absolute;top:4px;right:4px;background:var(--material-background);padding:2px;cursor:pointer;color:var(--color-white);border-radius:4px;-webkit-backdrop-filter:var(--material-filter);backdrop-filter:var(--material-filter);width:20px;height:20px}.reds-uploader__wrapper .reds-uploader__preview__delete__icon path:first-of-type{fill:$ThemeFill4}.reds-uploader__wrapper .reds-uploader__preview__mask{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;flex-direction:column;align-items:center;justify-content:center;background:$AlwaysDarkFill4;border-radius:6px;width:72px;height:72px;color:var(--color-tertiary-label);font-size:12px;font-weight:400;line-height:120%}.reds-uploader__wrapper .reds-uploader__preview__mask.four{width:100%;height:100%}.reds-uploader__wrapper .reds-uploader__preview__mask.three{width:100%;height:100%}.reds-uploader__wrapper .reds-uploader__preview__mask.two{width:100%;height:100%}.reds-uploader__wrapper .reds-uploader__preview__mask .reds-progress-indicator__media-spinner path{fill:$AlwaysLightFill5}.reds-uploader__wrapper .reds-uploader__preview__mask__msg{margin:0;margin-top:6px}.reds-uploader__wrapper .image_loading{color:var(--color-tertiary-label);width:100%;height:100%;font-size:12px;font-weight:400;line-height:120%;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:6px}.reds-uploader__wrapper .image_loading .msg{margin:0}
.reds-tab-pane-list{display:flex;overflow-x:auto;overflow-y:hidden}.reds-tab-pane-list:empty{height:0}.reds-tab-pane-list::-webkit-scrollbar{display:none}.reds-tabs-list{display:flex;flex-wrap:nowrap;position:relative;font-size:16px}.reds-tabs-list::-webkit-scrollbar{display:none}.reds-tabs-list > .active-tag{position:absolute;height:40px;bottom:0;background-color:var(--color-active-background);border-radius:999px;pointer-events:none}.reds-tabs-list > .active-bar{position:absolute;bottom:.5em;height:2px;background-color:#ff2e4d;border-radius:2px;pointer-events:none}.reds-tabs-list > .reds-tab-item{display:flex;align-items:center;box-sizing:border-box;height:40px;cursor:pointer;color:var(--color-secondary-label);white-space:nowrap;transition:transform .3s cubic-bezier(.2,0,.25,1);z-index:1}.reds-tabs-list > .reds-tab-item.active{font-weight:600;color:var(--color-primary-label)}.reds-tabs-list.text > .reds-tab-item.active{transform:scale(1.28)}.reds-tabs-list.left{justify-content:flex-start}.reds-tabs-list.right{justify-content:flex-end}.reds-tabs-list.center{justify-content:center}.reds-tab-item{display:flex;align-items:center}
.divider[data-v-39ecb380]{margin:4px 8px;list-style:none;height:0;border-color:var(--color-border);border-style:solid;border-width:1px 0 0}
.badge-container[data-v-0755b6ef]{position:relative}.count[data-v-0755b6ef]{position:absolute;right:0;top:0;display:flex;align-items:center;justify-content:center;padding:0 4px;min-width:16px;height:16px;border-radius:999px;color:var(--color-white);background-color:var(--color-red);font-size:12px;font-weight:500;transform:translate(calc(100% - 4px),calc(-100% + 4px));z-index:1}
.dropdown-container[data-v-1b03e45c]{position:absolute;left:0;right:0;top:0;height:0;-webkit-user-select:none;user-select:none}.dropdown-items[data-v-1b03e45c]{padding:4px;background:var(--elevation-high-background);box-shadow:var(--elevation-high-shadow);border-radius:12px;min-width:192px;overflow:scroll;z-index:10;position:relative}
.title[data-v-6a50ee07]{height:32px;font-weight:400;font-size:12px;line-height:120%;display:flex;color:var(--color-tertiary-label);padding:9px 12px}
.dropdown-container[data-v-141cfafe]{position:fixed;z-index:10;left:0;right:0;top:0;height:0}.dropdown-items[data-v-141cfafe]{padding:4px;background:var(--elevation-high-background);box-shadow:var(--elevation-high-shadow);border-radius:12px;min-width:192px;overflow:scroll;z-index:10;position:relative}.right-icon[data-v-141cfafe]{visibility:hidden;opacity:0;transition:opacity .5s;color:var(--color-quaternary-label)}.text[data-v-141cfafe]{flex-grow:1;height:100%;display:flex;align-items:center;color:var(--color-secondary-label)}li[data-v-141cfafe]{list-style:none;height:40px;padding:0 12px;display:flex;align-items:center;width:100%;font-size:16px;cursor:pointer}li[data-v-141cfafe]:hover{background:var(--color-active-background);border-radius:8px;color:var(--color-primary-label)}li:hover .right-icon[data-v-141cfafe]{visibility:visible;opacity:1}li:hover .text[data-v-141cfafe]{color:var(--color-primary-label)}.done[data-v-141cfafe]{color:var(--color-primary-label)}.selected[data-v-141cfafe]{color:var(--color-primary-label);font-weight:600}.left-icon[data-v-141cfafe]{margin-right:4px;color:var(--color-tertiary-label)}
.msg-container[data-v-2a210922]{width:100%;padding:0 16px;height:56px;justify-content:space-between;align-items:center;border-radius:16px;background:var(--elevation-high-background);box-shadow:var(--elevation-high-shadow);display:flex;justify-content:space-between;font-size:16px;overflow:hidden;cursor:pointer}.msg-container:hover .right-area[data-v-2a210922]{color:var(--color-secondary-label)}.msg-container.fade-in[data-v-2a210922]{animation:fadeIn-2a210922 .15s linear}@keyframes fadeIn-2a210922{0%{opacity:0;transform:translateY(16px)}100%{opacity:1;transform:translateY(0)}}.msg-container.fade-out[data-v-2a210922]{animation:fadeOut-2a210922 .15s linear}@keyframes fadeOut-2a210922{0%{opacity:1;transform:translateY(0)}100%{opacity:0;transform:translateY(16px)}}.msg-container .left-area[data-v-2a210922]{display:flex;align-items:center;color:var(--color-primary-label)}.msg-container .left-area .text[data-v-2a210922]{margin-left:8px;font-weight:600}.msg-container .right-area[data-v-2a210922]{color:var(--color-tertiary-label);display:flex;align-items:center}
.text-limit[data-v-09155e13]{color:var(--color-tertiary-label)}.over-limit[data-v-09155e13]{color:var(--color-red)}
.input-basic[data-v-8da5899a]{display:flex;flex-direction:column}.input-basic.input-direction[data-v-8da5899a]{flex-direction:row}.input-label[data-v-8da5899a]{padding:0 4px;margin-bottom:8px;color:var(--color-secondary-label);font-size:14px;line-height:120%;font-weight:500;display:flex;justify-content:space-between}.input-wrapper[data-v-8da5899a]{background:var(--color-active-background);flex:1;border-radius:12px;min-height:40px;overflow:hidden}.input-wrapper-row[data-v-8da5899a]{background:transparent}.input-content[data-v-8da5899a]{width:100%;height:40px;padding:0 12px;caret-color:var(--color-red);color:var(--color-primary-label);font-size:16px}.input-contentplaceholder[data-v-8da5899a]{color:var(--color-quaternary-label);font-size:16px}.textarea-content[data-v-8da5899a]{caret-color:var(--color-red);width:100%;border:none;background:transparent;color:var(--color-primary-label);font-size:16px;padding:12px;resize:none;outline:none}.textarea-contentplaceholder[data-v-8da5899a]{color:var(--color-quaternary-label);font-size:16px}.limit-wrapper[data-v-8da5899a]{flex:0 0 auto;display:flex;align-items:center}
.dot-container[data-v-147b1aa0]{display:inline-flex;align-items:center;position:relative;cursor:pointer;border:1px solid var(--color-shadow-border);border-radius:999px;width:32px;height:20px;transition:all .15s;background-color:var(--color-active-background);justify-content:center}.dot-container .dot[data-v-147b1aa0]{fill:var(--color-white);filter:drop-shadow(0 4px 32px rgba(0,0,0,0.08)) drop-shadow(0 1px 4px rgba(0,0,0,0.04));transform:translateX(calc(-50% + 2px));transition:transform .15s}.dot-container.turn-on[data-v-147b1aa0]{background-color:var(--color-red)}.dot-container.turn-on .dot[data-v-147b1aa0]{transform:translateX(calc(50% - 2px))}.dot-container.disabled[data-v-147b1aa0]{opacity:.4;cursor:not-allowed}
.back-icon-tip-container[data-v-d33abd98]{position:absolute;width:73px;height:28px;padding:2px 4px 2px 8px;border:1px solid var(--color-border);box-shadow:var(--elevation-low-shadow);background:var(--elevation-low-background);font-size:12px;color:var(--color-secondary-label);display:flex;align-items:center;border-radius:8px;top:46px}@media screen and (max-width:959px){.back-icon-tip-container[data-v-d33abd98]{left:-4px}}.esc[data-v-d33abd98]{height:20px;color:var(--color-tertiary-label);padding:0 4px;display:flex;align-items:center;background:var(--color-active-background);border-radius:4px;margin-left:4px}
.close-box[data-v-6c30aded]{width:40px;height:40px;cursor:pointer;display:none;display:flex;justify-content:center;align-items:center;border-radius:100%;background:var(--color-background);color:var(--color-secondary-label);display:none;position:absolute;left:0;top:0;margin:12px;z-index:5}.close-box[data-v-6c30aded]:hover{background:var(--color-active-background);color:var(--color-primary-label)}@media screen and (min-width:696px) and (max-width:959px){.close-box[data-v-6c30aded]{display:flex}}@media screen and (max-width:695px){.close-box[data-v-6c30aded]{display:flex}}.close-circle[data-v-6c30aded]{position:fixed;display:flex;z-index:100;cursor:pointer}@media screen and (min-width:1728px){.close-circle[data-v-6c30aded]{left:32px;top:32px}}@media screen and (min-width:1424px) and (max-width:1727px){.close-circle[data-v-6c30aded]{left:32px;top:32px}}@media screen and (min-width:1192px) and (max-width:1423px){.close-circle[data-v-6c30aded]{left:24px;top:24px}}@media screen and (min-width:960px) and (max-width:1191px){.close-circle[data-v-6c30aded]{left:24px;top:24px}}@media screen and (min-width:696px) and (max-width:959px){.close-circle[data-v-6c30aded]{display:none}}@media screen and (max-width:695px){.close-circle[data-v-6c30aded]{display:none}}.close[data-v-6c30aded]{display:flex;align-items:center;justify-content:center;display:flex;justify-content:center;align-items:center;border-radius:100%;background:var(--color-background);color:var(--color-secondary-label);width:40px;height:40px;border-radius:40px;cursor:pointer;transition:all .3s}.close-mask-dark[data-v-6c30aded]{color:var(--color-white);background:var(--material-background);-webkit-backdrop-filter:var(--material-filter);backdrop-filter:var(--material-filter)}.explore-more[data-v-6c30aded]{background-color:var(--elevation-high-background);padding:0 12px 0 8px;display:flex;justify-content:center;align-items:center;border-radius:12px;box-shadow:var(--elevation-high-shadow);white-space:nowrap;height:40px}.triangle[data-v-6c30aded]{margin-top:8px;margin-left:2px;width:6px;z-index:5;color:var(--color-background);box-shadow:var(--elevation-high-shadow)}.text[data-v-6c30aded]{color:var(--color-primary-label);font-size:16px;font-weight:600;margin-left:8px}.mild.close-circle[data-v-6c30aded]{transition:none}@media screen and (min-width:1728px){.mild.close-circle[data-v-6c30aded]{top:calc(56px + 32px)}}@media screen and (min-width:1424px) and (max-width:1727px){.mild.close-circle[data-v-6c30aded]{top:calc(56px + 32px)}}@media screen and (min-width:1192px) and (max-width:1423px){.mild.close-circle[data-v-6c30aded]{top:calc(56px + 24px)}}@media screen and (min-width:960px) and (max-width:1191px){.mild.close-circle[data-v-6c30aded]{top:calc(56px + 24px)}}@media screen and (min-width:696px) and (max-width:959px){.mild.close-circle[data-v-6c30aded]{display:none}}@media screen and (max-width:695px){.mild.close-circle[data-v-6c30aded]{display:none}}.force-hidden[data-v-6c30aded]{display:none}.force-visible[data-v-6c30aded]{display:flex}
.course-video[data-v-23ff9ac6]{overflow:hidden}.course-video .animate[data-v-23ff9ac6]{width:100%;height:100%;object-fit:cover}.flex-center[data-v-23ff9ac6]{display:flex;align-items:center;justify-content:center}.course-trigger[data-v-23ff9ac6]{height:32px;display:flex;align-items:center;justify-content:center;border-radius:999px;padding-left:10px;padding-right:10px;font-size:14px;color:var(--color-secondary-label);cursor:pointer}.course-trigger .play[data-v-23ff9ac6]{margin-right:7px;color:var(--color-quaternary-label)}.course-trigger[data-v-23ff9ac6]:hover{color:var(--color-primary-label)}.tutorial[data-v-23ff9ac6]{background-color:var(--color-active-background)}
.access-container[data-v-7aee5252],.access-wrapper[data-v-7aee5252]{display:flex;align-items:center;justify-content:center;flex-direction:column}.title[data-v-7aee5252]{margin-bottom:32px;font-size:20px;font-weight:600;color:var(--color-primary-label)}.flex-center[data-v-7aee5252]{display:flex;align-items:center;justify-content:center}.tip-text[data-v-7aee5252]{display:flex;align-items:center;justify-content:center;font-weight:600;margin-top:16px;margin-bottom:18px;font-size:16px;color:var(--color-secondary-label)}.qrcode-box[data-v-7aee5252]{display:flex;align-items:center;justify-content:center;flex-direction:column}.qrcode-img-box[data-v-7aee5252]{position:relative;display:flex;align-items:center;justify-content:center;width:160px;height:160px;border:2px solid var(--color-shadow-border);border-radius:12px;box-shadow:var(--elevation-high-shadow);background:var(--color-white)}.qrcode-img-box .qrcode-img[data-v-7aee5252]{width:128px;height:128px}.bottom-btn-group[data-v-7aee5252]{display:flex;align-items:center;margin-top:16px}.feedback-btn[data-v-7aee5252]{padding:11px 17px;margin-right:16px;font-size:16px;text-align:center;cursor:pointer;color:var(--color-secondary-label)}.btn-close[data-v-7aee5252]{cursor:pointer;padding:10px 16px;border-radius:20px;font-size:16px;border:1px solid var(--color-border);color:var(--color-secondary-label)}
[data-v-5f656e39] .full-page .reds-mask{background:transparent}[data-v-5f656e39] .access-modal.gray{filter:grayscale(0.95)}.fade-enter-active[data-v-5f656e39],.fade-leave-active[data-v-5f656e39]{transition:all .2s}.fade-enter-from[data-v-5f656e39],.fade-leave-to[data-v-5f656e39]{opacity:0}.fade-enter-from .access-modal-content[data-v-5f656e39],.fade-leave-to .access-modal-content[data-v-5f656e39]{transform:translateY(5px)}.access-modal-content[data-v-5f656e39]{display:flex;justify-content:center;position:relative;background:var(--elevation-high-background);border-radius:20px;box-shadow:var(--elevation-high-shadow);transition:transform .2s;transition:height .6s}@media screen and (min-width:1728px){.access-modal-content[data-v-5f656e39]{height:calc(100% - 2 * 32px)}}@media screen and (min-width:1424px) and (max-width:1727px){.access-modal-content[data-v-5f656e39]{height:calc(100% - 2 * 32px)}}@media screen and (min-width:1192px) and (max-width:1423px){.access-modal-content[data-v-5f656e39]{height:calc(100% - 2 * 24px)}}@media screen and (min-width:960px) and (max-width:1191px){.access-modal-content[data-v-5f656e39]{height:calc(100% - 2 * 24px)}}@media screen and (min-width:696px) and (max-width:959px){.access-modal-content[data-v-5f656e39]{height:100%;width:100%;border:0;flex-direction:column;overflow:scroll;box-shadow:none;border-radius:0;transition:none}}@media screen and (max-width:695px){.access-modal-content[data-v-5f656e39]{box-shadow:none;height:100%;width:100%;border-radius:0;border:0;flex-direction:column;overflow:scroll;transition:none}}.access-modal-content .button[data-v-5f656e39]{position:absolute;top:8px;cursor:pointer;color:var(--color-secondary-label)}.access-modal-content .button[data-v-5f656e39]:hover{color:var(--color-primary-label);border-radius:999px;background:var(--color-active-background)}.access-modal-content .button.close[data-v-5f656e39]{right:8px}.access-modal-content .button.back[data-v-5f656e39]{left:8px}
.multistage-toggle[data-v-f17b9244]{position:relative;background:var(--color-active-background);display:flex();padding:2px;border-radius:999px;cursor:pointer}.toggle-item[data-v-f17b9244]{border-radius:999px;background:transparent;color:var(--color-tertiary-label)}.toggle-item[data-v-f17b9244]:hover{color:var(--color-primary-label)}.toggle-item.active[data-v-f17b9244]{background:var(--elevation-low-background);box-shadow:var(--elevation-low-shadow);color:var(--color-primary-label)}.icon-wrapper[data-v-f17b9244]{width:24px;height:24px;display:flex;align-items:center;justify-content:center;cursor:pointer}.method-desc[data-v-f17b9244]{bottom:32px;white-space:nowrap;position:absolute;border:1px solid var(--color-border);box-shadow:var(--elevation-low-shadow);border-radius:6px;font-size:12px;padding:5.5px 8px 5.5px 8px;background:var(--elevation-high-background);line-height:140%;color:var(--color-secondary-label)}
li[data-v-13c4f3b9]{list-style:none}ul[data-v-13c4f3b9]{margin:0;padding:0}.text-active[data-v-13c4f3b9]{color:var(--color-tertiary-label)}@media screen and (min-width:960px){.text-active[data-v-13c4f3b9]{color:var(--color-primary-label)}.text-active.active[data-v-13c4f3b9]{color:var(--color-primary-label)}}.bg-active[data-v-13c4f3b9]{color:var(--color-primary-label)}@media screen and (min-width:960px){.bg-active[data-v-13c4f3b9]{background-color:var(--color-active-background);border-radius:999px}}.tertiary-label[data-v-13c4f3b9]{color:var(--color-tertiary-label) !important}.initial-bg[data-v-13c4f3b9]{background:var(--color-background)}
li[data-v-a93a7d02]{list-style:none}ul[data-v-a93a7d02]{margin:0;padding:0}.channel[data-v-a93a7d02]{font-size:16px;font-weight:600;margin-left:14px;color:var(--color-primary-label)}.user[data-v-a93a7d02]{position:relative}.login-btn[data-v-a93a7d02]{font-size:16px;height:48px;width:100%;font-weight:600;margin-bottom:8px}.side-bar-component[data-v-a93a7d02]{display:flex}@media screen and (min-width:696px) and (max-width:959px){.side-bar-component[data-v-a93a7d02]{display:none}}@media screen and (max-width:695px){.side-bar-component[data-v-a93a7d02]{display:none}}.bottom-menu-component[data-v-a93a7d02]{display:none}@media screen and (min-width:696px) and (max-width:959px){.bottom-menu-component[data-v-a93a7d02]{display:flex}}@media screen and (max-width:695px){.bottom-menu-component[data-v-a93a7d02]{display:flex}}
.banned-title[data-v-7a413e2c]{font-weight:500}[data-v-7a413e2c] .reds-alert-title{padding-bottom:4px !important}.text[data-v-7a413e2c]{font-weight:400;font-size:12px;line-height:20px;color:var(--color-tertiary-label);padding:0 20px 20px}.reason[data-v-7a413e2c]{font-weight:500;color:var(--color-primary-label)}.link[data-v-7a413e2c]{color:var(--color-link);font-weight:500}.center[data-v-7a413e2c]{text-align:center}
.anchor[data-v-5cde0260]{position:relative}.anchor .share-icon[data-v-5cde0260]{color:var(--color-secondary-label)}.anchor .share-icon[data-v-5cde0260]:hover{color:var(--color-primary-label)}.share-container[data-v-5cde0260]{position:absolute;bottom:36px;left:50%;transform:translateX(-50%)}.share-container.bottom[data-v-5cde0260]{top:41px}.share-wrapper[data-v-5cde0260]{display:flex;flex-direction:column;align-items:center;padding-top:16px;width:240px;background:var(--elevation-high-background);box-shadow:var(--elevation-high-shadow);border-radius:12px}.share-wrapper .share-wrapper-header[data-v-5cde0260]{color:var(--color-primary-label);font-weight:600;font-size:16px;line-height:120%}.share-wrapper .text[data-v-5cde0260]{margin:8px 0;font-size:14px;line-height:120%;color:var(--color-tertiary-label);text-align:center}.qrcode-wrapper[data-v-5cde0260]{margin-top:8px;display:flex;align-items:center;justify-content:center;padding:16px;background-color:var(--color-white);border-radius:8px;box-shadow:0 2px 8px 0 rgba(0,0,0,0.04),0 1px 2px 0 rgba(0,0,0,0.02)}.qrcode-wrapper .Qr-code[data-v-5cde0260]{width:128px;height:128px}.qrcode-wrapper .Qr-code img[data-v-5cde0260]{width:100%;height:100%}.share-tools[data-v-5cde0260]{padding:6px;width:100%;height:56px;border-top:1px solid var(--color-border);display:flex;align-items:center;justify-content:center;margin-top:8px}.share-tools .reds-button-new[data-v-5cde0260]{cursor:pointer;color:var(--color-secondary-label)}
[data-v-fc1041fa] .reds-button-new:hover{background:var(--color-active-background)}[data-v-fc1041fa] .reds-button-new:active{background:var(--color-active-background);color:var(--color-primary-label)}.container[data-v-fc1041fa]{display:flex;flex-direction:column;position:fixed;top:0;background:var(--color-background);z-index:15}.container iframe[data-v-fc1041fa]{width:100%;flex-grow:1;outline:none;border:0;margin:0}.container svg[data-v-fc1041fa]{cursor:pointer;opacity:.8;color:var(--color-secondary-label)}.container .header[data-v-fc1041fa]{display:flex;align-items:center;-webkit-user-select:none;user-select:none;flex-shrink:0;height:40px;margin-bottom:8px}.container .header .title[data-v-fc1041fa]{flex:1;text-align:center;color:var(--color-primary-label);font-size:16px;font-weight:600}.container .header .left[data-v-fc1041fa],.container .header .right[data-v-fc1041fa]{flex:1;display:flex;align-items:center}.container .header .left .close-icon[data-v-fc1041fa],.container .header .right .close-icon[data-v-fc1041fa]{color:var(--color-secondary-label)}.container .header .left .close-icon[data-v-fc1041fa]:hover,.container .header .right .close-icon[data-v-fc1041fa]:hover{color:var(--color-primary-label)}.container .header .right[data-v-fc1041fa]{justify-content:flex-end}.container .header .dragger[data-v-fc1041fa]{color:var(--color-quaternary-label)}.container .header .dragger[data-v-fc1041fa]:hover{color:var(--color-tertiary-label);cursor:grab}.container .header .dragger.dragging[data-v-fc1041fa]{color:var(--color-tertiary-label);cursor:grabbing}@media screen and (min-width:960px){.container[data-v-fc1041fa]{width:440px;height:calc(100vh - 64px);margin:32px 0;padding:8px;border-radius:20px;box-shadow:var(--elevation-high-shadow);left:calc(100% - 440px);transform:translateX(-32px);transition:left .3s ease,transform .3s ease,box-shadow .3s ease}.container.out[data-v-fc1041fa]{transform:translateX(100%);box-shadow:none}.container.left[data-v-fc1041fa]{left:0;transform:translateX(32px)}.container.left.out[data-v-fc1041fa]{transform:translateX(-100%);box-shadow:none}.container iframe[data-v-fc1041fa]{border-radius:12px}.container .fullscreen-header[data-v-fc1041fa]{display:none}}@media screen and (max-width:959px){.container[data-v-fc1041fa]{width:100%;height:100%;margin:0;padding:0;border-radius:0;left:0}.container.out[data-v-fc1041fa]{display:none}.container .panel-header[data-v-fc1041fa]{display:none}}
.center-modal-container[data-v-7cccb6db]{background:var(--elevation-high-background);border-radius:16px;-webkit-user-select:none;user-select:none}@media screen and (min-width:1424px){.center-modal-container[data-v-7cccb6db]{width:440px}}@media screen and (min-width:1192px) and (max-width:1423px){.center-modal-container[data-v-7cccb6db]{width:400px}}@media screen and (min-width:696px) and (max-width:1191px){.center-modal-container[data-v-7cccb6db]{width:360px}}@media screen and (max-width:695px){.center-modal-container[data-v-7cccb6db]{width:320px}}.header[data-v-7cccb6db]{height:56px;padding:8px;display:flex;flex-wrap:nowrap;position:relative;justify-content:center}.text[data-v-7cccb6db]{color:var(--color-primary-label);font-weight:600;font-size:16px;display:flex;align-items:center}.close-container[data-v-7cccb6db]{right:8px;width:40px;height:40px;position:absolute;display:flex;justify-content:center;align-items:center;color:var(--color-secondary-label);cursor:pointer}.close-container[data-v-7cccb6db]:hover{background:var(--color-active-background);border-radius:999px;color:var(--color-primary-label)}
.content[data-v-4492decc]{display:flex;flex-direction:column}.desc-container[data-v-4492decc]{padding:24px}.title[data-v-4492decc]{text-align:center;color:var(--color-primary-label);font-size:18px;font-weight:600;margin-bottom:12px;-webkit-user-select:text;user-select:text}.text[data-v-4492decc]{text-align:center;color:var(--color-secondary-label);font-size:14px;-webkit-user-select:text;user-select:text}.btn-container[data-v-4492decc]{padding:0 48px 48px 48px;display:flex;justify-content:center}.btn[data-v-4492decc]{color:var(--color-secondary-label);font-size:16px;height:48px;padding:0 24px;border-radius:999px;border:1px solid var(--color-border);display:inline-flex;justify-content:center;align-items:center;font-weight:600;cursor:pointer;white-space:nowrap}.btn[data-v-4492decc]:hover{color:var(--color-primary-label);background:var(--color-active-background)}.video[data-v-4492decc]{border-bottom:1px solid var(--color-shadow-border)}
.content[data-v-402e9182]{display:flex;flex-direction:column}.desc-container[data-v-402e9182]{padding:24px}.title[data-v-402e9182]{text-align:center;color:var(--color-primary-label);font-size:18px;font-weight:600;margin-bottom:12px;-webkit-user-select:text;user-select:text}.text[data-v-402e9182]{text-align:center;color:var(--color-secondary-label);font-size:14px;-webkit-user-select:text;user-select:text}.btn-container[data-v-402e9182]{padding:0 48px 48px 48px;display:flex;justify-content:center}.btn[data-v-402e9182]{color:var(--color-secondary-label);font-size:16px;height:48px;padding:0 24px;border-radius:999px;border:1px solid var(--color-border);display:flex;justify-content:center;align-items:center;font-weight:600;white-space:nowrap;cursor:pointer}.btn[data-v-402e9182]:hover{color:var(--color-primary-label);background:var(--color-active-background)}.video[data-v-402e9182]{border-bottom:1px solid var(--color-shadow-border)}
.keyboard[data-v-c42b1888]{background-color:var(--color-primary-label);color:var(--color-inverted-label);height:24px;min-width:24px;line-height:24px;display:inline-block;padding:0 8px;border-radius:4px;font-size:12px;font-weight:500}.icon-container[data-v-c42b1888]{height:24px;width:24px;display:inline-flex;justify-content:center;align-items:center}.inverted[data-v-c42b1888]{background-color:transparent;color:var(--color-secondary-label)}.square[data-v-c42b1888]{width:24px;display:flex;padding:0;justify-content:center}
.desc[data-v-667f1520]{display:flex;align-items:center;font-size:16px;color:var(--color-secondary-label)}.content[data-v-667f1520]{height:440px;padding:24px}.keyboard-container[data-v-667f1520]{display:flex;justify-content:space-between;margin-bottom:12px}.keyboard-container.not-first[data-v-667f1520]{margin-top:12px}.keys-container[data-v-667f1520]{display:flex}
.guide[data-v-20b84cf1]{width:200px;height:200px}.container[data-v-20b84cf1]{display:flex;align-items:center;justify-content:center;flex-direction:column}.desc[data-v-20b84cf1]{font-size:18px;font-weight:600;color:var(--color-white);margin-top:24px}
.container[data-v-0eb6247e]{padding-bottom:100%;background-position:center;background-size:contain;background-repeat:no-repeat;border-radius:16px;position:relative;cursor:pointer}.container[data-v-0eb6247e]::after{content:'';position:absolute;top:0;left:0;width:100%;height:100%;transition:background-color .2s;background-color:transparent;-webkit-transform:translate3d(0,0,0);border-radius:16px}.container[data-v-0eb6247e]:hover::after{background-color:var(--mask-note-card)}.container.higher[data-v-0eb6247e]{padding-bottom:133%}.container.wider[data-v-0eb6247e]{padding-bottom:75%}.container .content[data-v-0eb6247e]{position:absolute;bottom:0;left:0;width:100%;padding:12px;display:flex;align-items:flex-end}.container .content .title[data-v-0eb6247e]{flex-grow:1;margin-right:8px;font-size:14px;color:var(--color-white)}.container .content .tag[data-v-0eb6247e]{width:40px;height:24px;font-size:12px;line-height:24px;color:var(--color-white);background:var(--material-background);-webkit-backdrop-filter:var(--material-filter);backdrop-filter:var(--material-filter);border-radius:12px;text-align:center}
[data-v-c1dba808] .reds-mask{background:var(--mask-backdrop)}.activity-modal[data-v-c1dba808]{z-index:100011}.acrivity-container[data-v-c1dba808]{cursor:pointer;position:relative;display:flex;align-items:center;justify-content:center;flex-direction:column;width:50%;border-radius:20px}@media screen and (min-width:960px) and (max-width:1191px){.acrivity-container[data-v-c1dba808]{width:60%}}@media screen and (min-width:696px) and (max-width:959px){.acrivity-container[data-v-c1dba808]{width:70%}}@media screen and (max-width:695px){.acrivity-container[data-v-c1dba808]{width:100%}}.acrivity-container .image[data-v-c1dba808]{border-radius:20px;width:100%;height:100%;object-fit:cover}.acrivity-container .open-area[data-v-c1dba808]{position:absolute;bottom:0;transform:translate(0,50%)}.acrivity-container .open-area .open-button[data-v-c1dba808]{padding:0 20px;display:flex;align-items:center;justify-content:center;font-weight:600;background:var(--elevation-high-background);font-size:16px;color:var(--color-secondary-label);border-radius:999px;height:48px}.acrivity-container .open-area .open-button .icon[data-v-c1dba808]{margin-left:8px;opacity:.3}.acrivity-container .open-area .cta-image[data-v-c1dba808]{min-height:44px;max-height:52px;object-fit:cover}.close-button[data-v-c1dba808]{position:absolute;cursor:pointer;display:flex;align-items:center;justify-content:center;top:16px;right:var(--25d9dc56);height:40px;width:88px;background:var(--elevation-high-background);border-radius:999px;font-weight:400;font-size:16px;color:var(--color-secondary-label)}.close-button.hoverable[data-v-c1dba808]{color:var(--color-primary-label)}.close-button .countdown[data-v-c1dba808]{display:flex;align-items:center;justify-content:center;width:28px;height:28px;margin-left:6px;border-radius:999px;background:var(--color-active-background);white-space:nowrap}.close-button .countdown.hoverable[data-v-c1dba808]{background:transparent;color:var(--color-secondary-label)}
.onebox[data-v-70ee96be]{display:flex;align-items:center;width:100%;height:104px;padding-left:12px}.onebox .image[data-v-70ee96be]{border:1px solid var(--color-shadow-border);border-radius:8px;object-fit:cover}.onebox .title-wrapper[data-v-70ee96be]{margin-left:16px;font-weight:600;font-size:18px;line-height:120%;color:var(--color-primary-label)}.onebox .title-wrapper .sub-title[data-v-70ee96be]{margin-top:9px;font-weight:400;font-size:14px;line-height:120%;color:var(--color-tertiary-label)}.onebox .button[data-v-70ee96be]{display:flex;align-items:center;justify-content:center;height:40px;padding:0 16px;border:1px solid var(--color-border);border-radius:999px;font-weight:400;font-size:16px;line-height:120%;color:var(--color-secondary-label);margin:0 24px 0 auto}.onebox .button[data-v-70ee96be]:hover{color:var(--color-primary-label)}
.spinner[data-v-1c901116]{animation:spin-1c901116 .6s ease-in-out infinite;width:24px;height:24px;margin-top:-16px;opacity:var(--c989fa5a);transition:opacity .45s ease-in-out}.loading-container[data-v-1c901116]{width:100%;transition:height .45s ease-in-out;display:flex;align-items:center;justify-content:center;flex-direction:column;color:var(--color-secondary-label)}@keyframes spin-1c901116{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}
.error[data-v-22d432c2]{display:flex;align-items:center;justify-content:center;width:100vw;max-width:100%;height:calc(100vh - 88px);background:var(--color-background)}.error section[data-v-22d432c2]{display:flex;flex-direction:column;align-items:center}.error img[data-v-22d432c2]{width:160px}.error .message[data-v-22d432c2]{margin-top:40px;font-size:14px;line-height:18px;color:var(--color-tertiary-label)}.error .button[data-v-22d432c2]{display:flex;align-items:center;justify-content:center;margin-top:16px;width:96px;height:36px;border:1px solid var(--color-red);border-radius:20px;font-weight:500;font-size:14px;color:var(--color-red);cursor:pointer}
.content-container[data-v-da963056]{display:flex;overflow-x:scroll;overflow-y:hidden;white-space:nowrap;color:var(--color-secondary-label)}
.channel-scroll-container[data-v-c69fb658]{overflow:hidden;display:flex;user-select:none;-webkit-user-select:none;align-items:center;font-size:16px;color:var(--color-secondary-label);height:40px;white-space:nowrap;height:72px}.channel-scroll-container.gray[data-v-c69fb658]{filter:grayscale(0.95)}.channel[data-v-c69fb658]{height:40px;display:flex;justify-content:center;align-items:center;padding:0 16px;cursor:pointer;-webkit-user-select:none;user-select:none}.channel[data-v-c69fb658]:hover{background:var(--color-active-background);border-radius:999px;color:var(--color-primary-label)}.active[data-v-c69fb658]{background:var(--color-active-background);border-radius:999px;color:var(--color-primary-label);font-weight:600}.vertical-channel-bg[data-v-c69fb658]:hover{background:var(--color-vertical-channel)}.vertical-channel-bg[data-v-c69fb658]{padding:0 16px 0 12px}[data-v-c69fb658] .vertical-channel-bg.active{background:var(--color-vertical-channel) !important}
.wrapper[data-v-56cede88]{width:var(--columnWidth)}.wrapper .cover[data-v-56cede88]{background:var(--color-active-background);width:100%;height:var(--d49b5fbe);border-radius:var(--note-card-corner-radius)}.wrapper .interact[data-v-56cede88]{width:100%;padding:12px}.wrapper .interact .title[data-v-56cede88]{background:var(--color-active-background);width:75%;height:14px;margin-bottom:12px;border-radius:var(--note-card-corner-radius)}.wrapper .interact .author[data-v-56cede88]{background:var(--color-active-background);width:35%;height:14px;border-radius:var(--note-card-corner-radius)}
.skeleton-container[data-v-2001e7e1]{column-count:var(--feeds-columns);column-gap:calc(var(--horizontal) * 1px);grid-auto-flow:dense;margin:0 auto}.skeleton-container .skeleton-item[data-v-2001e7e1]{margin-bottom:calc(var(--vertical) * 1px);display:block;width:100%;break-inside:avoid}
.back-top[data-v-4559bcd4]{pointer-events:none;display:flex;align-items:center;justify-content:center;width:40px;height:40px;border:1px solid var(--color-border);box-shadow:var(--elevation-low-shadow);border-radius:44px;cursor:pointer;opacity:0;color:var(--color-secondary-label);z-index:10;background:var(--elevation-low-background)}.back-top.active[data-v-4559bcd4]{pointer-events:auto;visibility:visible;opacity:1}.back-top .btn-wrapper[data-v-4559bcd4]{width:100%;height:100%;border-radius:44px;display:flex;align-items:center;justify-content:center;background:var(--color-background)}.back-top .btn-wrapper[data-v-4559bcd4]:hover{background:var(--color-active-background);color:var(--color-primary-label)}.tip-container[data-v-4559bcd4]{position:absolute;height:28px;padding:0 8px;border:1px solid var(--color-border);box-shadow:var(--elevation-low-shadow);background:var(--elevation-low-background);font-size:12px;color:var(--color-secondary-label);display:flex;align-items:center;justify-content:center;border-radius:6px;right:48px;visibility:hidden}.tip-container .tip-text[data-v-4559bcd4]{width:100%;white-space:nowrap;line-height:140%}.back-top:hover .tip-container[data-v-4559bcd4]{visibility:visible}
.floating-btn-sets[data-v-2ed9bdf4]{position:fixed;display:flex;flex-direction:column;width:40px;gap:8px;right:var(--horizontalGapPx);bottom:var(--horizontalGapPx)}@media screen and (max-width:959px){.floating-btn-sets[data-v-2ed9bdf4]{bottom:calc(48px + var(--horizontal) * 1px)}}.nio-btn-sets[data-v-2ed9bdf4]{left:24px !important;bottom:72px !important}
.reload[data-v-173cc1c4]{width:40px;height:40px;background:var(--elevation-low-background);border:1px solid var(--color-border);box-shadow:var(--elevation-low-shadow);border-radius:100px;color:var(--color-secondary-label);display:flex;align-items:center;justify-content:center;transition:background .2s;cursor:pointer}.reload .btn-wrapper[data-v-173cc1c4]{width:100%;height:100%;border-radius:44px;display:flex;align-items:center;justify-content:center;background:var(--color-background)}.reload .btn-wrapper[data-v-173cc1c4]:hover{background:var(--color-active-background);color:var(--color-primary-label)}.tip-container[data-v-173cc1c4]{position:absolute;height:28px;padding:0 8px;border:1px solid var(--color-border);box-shadow:var(--elevation-low-shadow);background:var(--elevation-low-background);font-size:12px;color:var(--color-secondary-label);display:flex;align-items:center;justify-content:center;border-radius:6px;right:48px;visibility:hidden}.tip-container .tip-text[data-v-173cc1c4]{width:100%;white-space:nowrap;line-height:140%}.reload:hover .tip-container[data-v-173cc1c4]{visibility:visible}
.graphic-filter[data-v-a4fa5cbc]{display:flex;align-items:center;justify-content:center;width:40px;height:40px;border:1px solid var(--color-border);box-shadow:var(--elevation-low-shadow);border-radius:44px;cursor:pointer;z-index:10;background:var(--elevation-low-background)}.graphic-filter.checked-border[data-v-a4fa5cbc]{border:1px solid var(--color-secondary-label)}.graphic-filter.checked-border[data-v-a4fa5cbc]:hover{border:1px solid var(--color-primary-label)}.graphic-filter .btn-wrapper[data-v-a4fa5cbc]{width:100%;height:100%;border-radius:44px;display:flex;align-items:center;justify-content:center;color:var(--color-secondary-label)}.graphic-filter .btn-wrapper[data-v-a4fa5cbc]:hover{background:var(--color-active-background);color:var(--color-primary-label)}.tip-container[data-v-a4fa5cbc]{position:absolute;height:28px;padding:0 8px;border:1px solid var(--color-border);box-shadow:var(--elevation-low-shadow);background:var(--elevation-low-background);font-size:12px;color:var(--color-secondary-label);display:flex;align-items:center;justify-content:center;border-radius:6px;right:48px;visibility:hidden}.tip-container .tip-text[data-v-a4fa5cbc]{width:100%;white-space:nowrap;line-height:140%}.graphic-filter:hover .tip-container[data-v-a4fa5cbc]{visibility:visible}.spinner[data-v-a4fa5cbc]{animation:spin-a4fa5cbc .6s ease-in-out infinite;transition:opacity .45s ease-in-out}@keyframes spin-a4fa5cbc{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}
.feeds-loading[data-v-820f2ae6]{display:flex;align-items:center;justify-content:center;width:100%;height:64px;font-size:12px;color:var(--color-tertiary-label);visibility:hidden}.feeds-loading.active[data-v-820f2ae6]{visibility:visible}
.like-wrapper[data-v-dc3a3972]{position:relative;cursor:pointer;display:flex;align-items:center}.like-wrapper .count[data-v-dc3a3972]{text-wrap:nowrap}.like-active[data-v-dc3a3972]:hover{color:var(--color-primary-label)}.like-icon.active[data-v-dc3a3972]{visibility:hidden}.like-lottie[data-v-dc3a3972]{position:absolute;left:0;top:0;transform:scale(1.7)}
span[data-v-51ec0135] img{height:14px;transform:translate(0,1px)}
.item-wrapper[data-v-7d549413]{display:flex;align-items:center;padding:8px;font-size:14px;font-weight:500;line-height:120%;min-height:40px}.item-wrapper.rec-query[data-v-7d549413]{padding:8px 12px}.item-wrapper .item-cover[data-v-7d549413]{flex-shrink:0;width:40px;height:40px;border-radius:6px;margin-right:8px;object-fit:cover}.query-note-item[data-v-7d549413]{width:100%;color:var(--13e39d34);cursor:pointer;border-radius:12px}.query-note-item.hotspot[data-v-7d549413]{display:flex;align-items:center;padding:8px 12px 8px 12px;font-weight:400;color:var(--13e39d34)}.query-note-item.hotspot[data-v-7d549413]:nth-child(1){color:#ff2442}.query-note-item.hotspot[data-v-7d549413]:nth-child(2){color:#ff3e33}.query-note-item.hotspot[data-v-7d549413]:nth-child(3){color:#ff5226}.query-note-item.hotspot .hotspot-index[data-v-7d549413]{display:flex;align-items:center;justify-content:center;font-size:12px;line-height:120%;font-weight:500;width:16px;height:16px}.query-note-item.hotspot .hotspot-title[data-v-7d549413]{color:var(--13e39d34);margin-left:8px}.query-note-item[data-v-7d549413]:hover{background-color:var(--630dd4eb)}.query-note-item:hover > .hotspot-title[data-v-7d549413]{color:var(--f1078352)}.query-note-wrapper[data-v-7d549413]{border-radius:16px;background:var(--00604742)}.query-note-wrapper .query-note-list[data-v-7d549413]{padding:0 4px 4px 4px}.query-note-wrapper .query-note-list.hotspot[data-v-7d549413]{padding:0 4px;position:relative}.query-note-wrapper .query-note-header[data-v-7d549413]{width:100%;padding:0 12px;height:60px;display:flex;align-items:center;color:var(--0773c501);font-size:16px;font-weight:600;line-height:120%}.query-note-wrapper .query-note-header .icon-warpper[data-v-7d549413]{width:40px;height:40px;border-radius:999px;background:var(--630dd4eb);margin-right:8px;display:flex;align-items:center;justify-content:center}.query-note-wrapper .query-note-header .icon-warpper.modify[data-v-7d549413]{margin-right:0;width:28px;height:28px;background:transparent;cursor:pointer;color:var(--13e39d34);margin-left:auto}.query-note-wrapper .query-note-header .icon-warpper.modify[data-v-7d549413]:hover{background-color:var(--630dd4eb);color:var(--f1078352)}.footer[data-v-7d549413]{padding:4px 0}.footer .more-hotspot[data-v-7d549413]{color:var(--color-secondary-label);cursor:pointer;background:var(--630dd4eb);border-radius:12px;display:flex;align-items:center;justify-content:center;height:32px;color:var(--13e39d34)}.footer .more-hotspot[data-v-7d549413]:hover{color:var(--f1078352)}.modify-dropdown[data-v-7d549413]{padding:0}.modify-dropdown .dropdown-items[data-v-7d549413]{min-width:90px}.modify-dropdown .menu-wrapper[data-v-7d549413]{border-radius:12px;width:100%}.modify-dropdown .menu-wrapper .menu-item[data-v-7d549413]{display:flex;align-items:center;justify-content:center;height:100%;width:100%;height:40px;cursor:pointer;color:var(--color-primary-label);border-radius:8px}.modify-dropdown .menu-wrapper .menu-item[data-v-7d549413]:hover{background:var(--color-active-background)}.modify-pad[data-v-7d549413]{position:absolute;top:0;bottom:44px;width:calc(100% - 8px);height:calc(100% - 40px);background:var(--00604742);display:flex;align-items:center;justify-content:center;flex-direction:column}.modify-pad.hide[data-v-7d549413]{height:calc(100% - 4px)}.modify-pad .modify-wrapper[data-v-7d549413]{color:var(--13e39d34);border-radius:12px;height:40px;font-size:14px;font-weight:$font-weight-normal;line-height:120%;cursor:pointer;display:flex;align-items:center;justify-content:center;width:100%}.modify-pad .modify-wrapper[data-v-7d549413]:hover{background-color:var(--630dd4eb);color:var(--f1078352)}.modify-pad .hide-text[data-v-7d549413]{font-size:16px;font-weight:600;line-height:120%;margin-bottom:6px;color:var(--f1078352)}.modify-pad .hide-text.hint[data-v-7d549413]{color:var(--13e39d34);font-size:14px;font-weight:400;line-height:140%}
.modify-dropdown .dropdown-items{min-width:90px}
.note-item[data-v-a264b01a]{position:absolute;left:0;top:0;width:var(--1bd4d75c)}.note-item.static-layout[data-v-a264b01a]{position:static}.note-item.gray[data-v-a264b01a]{filter:grayscale(0.95)}.cover[data-v-a264b01a]{position:relative;width:var(--1bd4d75c);display:flex;border-radius:var(--68479076);overflow:hidden;outline:1px solid var(--color-border);outline-offset:-1px;transition:background .2s;transform:translateZ(0)}.cover[data-v-a264b01a]::before{content:'';position:absolute;top:0;left:0;width:100%;height:100%;background:var(--color-active-background);-webkit-backdrop-filter:var(--1e4add76);backdrop-filter:var(--1e4add76);z-index:1;transition:all 400ms}.cover.ld[data-v-a264b01a]::before{background:transparent;-webkit-backdrop-filter:blur(0);backdrop-filter:blur(0)}.cover[data-v-a264b01a]::after{content:'';position:absolute;top:0;left:0;width:100%;height:100%;transition:background-color .2s;background-color:transparent;-webkit-transform:translate3d(0,0,0)}.cover:hover .loading[data-v-a264b01a]{background-color:var(--mask-backdrop);animation:fadeInOut-a264b01a 1s ease-in-out infinite}.cover img[data-v-a264b01a]{width:100%}.cover .play-icon[data-v-a264b01a]{display:flex;align-items:center;justify-content:center;position:absolute;right:14px;top:14px;width:20px;height:20px;color:var(--color-white);background:var(--material-background);-webkit-backdrop-filter:var(--material-filter);backdrop-filter:var(--material-filter);border-radius:20px}.cover .top-tag-area[data-v-a264b01a]{position:absolute;left:12px;top:12px;z-index:4}.cover .top-tag-area .top-wrapper[data-v-a264b01a]{background:var(--color-red);border-radius:999px;font-weight:500;color:var(--color-white);line-height:120%;font-size:12px;padding:5px 8px 5px 8px;display:flex;align-items:center;justify-content:center}.cover .bottom-tag-area[data-v-a264b01a]{position:absolute;left:12px;bottom:12px;z-index:4}.cover .bottom-tag-area .bottom-wrapper[data-v-a264b01a]{display:flex;align-items:center;justify-content:center;border-radius:50px;color:var(--color-white);background:var(--material-background);-webkit-backdrop-filter:var(--material-filter);backdrop-filter:var(--material-filter);padding:4px 8px 4px 8px;font-size:12px;line-height:120%;font-weight:400}.cover .bottom-tag-area .bottom-wrapper .bottom-tag-icon[data-v-a264b01a]{margin-right:2px;width:12px;height:12px}.footer[data-v-a264b01a]{padding:12px}.footer .recommend-reason[data-v-a264b01a]{margin-bottom:6px}.footer .recommend-reason .recommend-reason-icon[data-v-a264b01a]{margin-right:2px}.footer .recommend-reason .recommend-reason-text[data-v-a264b01a]{color:var(--color-tertiary-label);font-size:12px;line-height:16px;vertical-align:middle}.title[data-v-a264b01a]{margin-bottom:8px;word-break:break-all;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;font-weight:500;font-size:14px;line-height:140%;color:var(--color-primary-label)}.author-wrapper[data-v-a264b01a]{display:flex;align-items:center;justify-content:space-between;height:20px;color:var(--color-secondary-label);font-size:12px;transition:color 1s}.author-wrapper .author[data-v-a264b01a]{display:flex;align-items:center;color:inherit;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-right:12px}.author-wrapper .author[data-v-a264b01a]:hover{color:var(--color-primary-label)}.author-wrapper .author-avatar[data-v-a264b01a]{margin-right:6px;width:20px;height:20px;border-radius:20px;border:1px solid var(--color-border);flex-shrink:0}.author-wrapper .author-avatar.no-avatar[data-v-a264b01a]{display:inline-block;background-color:var(--color-active-background)}.author-wrapper .name[data-v-a264b01a]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[data-v-a264b01a] .like-wrapper .count{margin-left:2px}[data-v-a264b01a] .like-wrapper:hover{color:var(--color-primary-label)}.mask[data-v-a264b01a]:hover::after{background-color:var(--mask-note-card);position:absolute;top:0;left:0;width:100%;height:100%;-webkit-transform:translate3d(0,0,0)}@keyframes fadeInOut-a264b01a{0%,100%{opacity:1}50%{opacity:0}}
.collect-wrapper[data-v-16bec73d]{position:relative;cursor:pointer;display:flex;align-items:center;color:var(--color-tertiary-label)}.count[data-v-16bec73d]{margin-left:2px;color:var(--color-primary-label)}.collect-icon[data-v-16bec73d]{color:var(--color-primary-label)}.collect-icon.active[data-v-16bec73d]{visibility:hidden}.message-container[data-v-16bec73d]{position:relative;padding:16px}
.comment-wrapper[data-v-ff8cd160]{position:relative;cursor:pointer;display:flex;align-items:center;flex-shrink:0;color:var(--color-secondary-label)}.comment-wrapper[data-v-ff8cd160]:hover{color:var(--color-primary-label)}.comment-wrapper .count[data-v-ff8cd160]{text-wrap:nowrap;margin-left:2px}
.card-bottom-wrapper[data-v-11fd8d4e]{display:flex;align-items:center;justify-content:space-between;height:32px;color:var(--color-secondary-label);font-size:12px;transition:color 1s}.card-bottom-wrapper .author[data-v-11fd8d4e]{flex-shrink:1;display:flex;align-items:center;color:inherit;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-right:12px}.card-bottom-wrapper .author[data-v-11fd8d4e]:hover{color:var(--color-primary-label)}.card-bottom-wrapper .author-avatar[data-v-11fd8d4e]{margin-right:6px;border-radius:20px;border:1px solid var(--color-shadow-border);flex-shrink:0}.card-bottom-wrapper .author-avatar.no-avatar[data-v-11fd8d4e]{display:inline-block;background-color:var(--color-active-background)}.card-bottom-wrapper .name[data-v-11fd8d4e]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.card-bottom-wrapper .time[data-v-11fd8d4e]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:4px;color:var(--color-tertiary-label)}
.poi-info-wrapper[data-v-15bd02fa]{max-width:calc(100% - 24px);height:24px;position:absolute;left:12px;bottom:12px;padding-left:8px;padding-right:8px;background-color:var(--material-background);border-radius:999px;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);color:var(--color-white);display:flex;align-items:center}.poi-info-wrapper .poi-info-address[data-v-15bd02fa]{margin-left:2px;margin-right:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.poi-info-wrapper .poi-info-divider[data-v-15bd02fa]{height:10px;stroke-width:1px}.poi-info-wrapper .poi-info-distance[data-v-15bd02fa]{margin-left:4px}.shrink-0[data-v-15bd02fa]{flex-shrink:0}
.feeds-container[data-v-330d9cca]{position:relative;margin:0 auto}.feeds-container.static-layout[data-v-330d9cca]{display:flex;justify-content:center;gap:var(--horizontalGapPx)}
.feeds-page[data-v-811a7fa6]{flex:1;padding:0 var(--horizontalGapPx);overflow-y:scroll;padding-top:72px}.feeds-page .channel-container[data-v-811a7fa6]{display:flex;justify-content:space-between;align-items:center;user-select:none;-webkit-user-select:none}.feeds-page .channel-container[data-v-811a7fa6] .channel-list{flex:1;margin-bottom:0}.feeds-page .channel-container[data-v-811a7fa6] .channel-scroll-container{background-color:transparent;width:var(--feeds-width)}.channel-icon[data-v-811a7fa6]{width:28px;height:28px;margin-right:4px}
.bottom-menu[data-v-3661fbb1]{position:fixed;bottom:0;width:100%;background:var(--color-background);display:none;padding-bottom:env(safe-area-inset-bottom)}@media screen and (min-width:696px) and (max-width:959px){.bottom-menu[data-v-3661fbb1]{display:block}}@media screen and (max-width:695px){.bottom-menu[data-v-3661fbb1]{display:block}}[data-v-3661fbb1] .channel-list{display:flex;color:var(--color-tertiary-label)}[data-v-3661fbb1] .bottom-channel{flex-grow:1;height:48px;display:flex;justify-content:center;align-items:center;color:var(--color-tertiary-label);cursor:pointer}[data-v-3661fbb1] .text{font-size:16px;margin-left:12px}@media screen and (max-width:695px){[data-v-3661fbb1] .text{display:none}}[data-v-3661fbb1] .active{color:var(--color-primary-label)}.force-visible[data-v-3661fbb1]{display:block}
.container[data-v-657d976e]{width:100%;background:var(--elevation-high-background);box-shadow:var(--elevation-high-shadow);border-radius:12px}.container .group-wrapper[data-v-657d976e]{padding:4px}.container .group-wrapper.allow-overflow[data-v-657d976e]{max-height:440px;overflow-y:scroll}.back[data-v-657d976e]{display:flex;align-items:center;justify-content:center;position:absolute;width:28px;height:28px;margin:10px 0 0 8px;color:var(--color-secondary-label);cursor:pointer;border-radius:999px}.back[data-v-657d976e]:hover{color:var(--color-primary-label);background:var(--color-active-background)}.group-navi[data-v-657d976e]{display:flex;align-items:center;color:var(--color-primary-label);height:48px;padding:4px 8px;font-size:16px;font-weight:600;justify-content:center;border-bottom:1px solid var(--color-border)}.group-header[data-v-657d976e]{display:flex;align-items:center;padding:0 12px;height:32px;color:var(--color-tertiary-label);font-size:12px;font-weight:400}.menu-item[data-v-657d976e]{display:flex;align-items:center;height:40px;padding:0 12px;color:var(--color-secondary-label);font-size:16px;font-weight:400;border-radius:8px}.menu-item .link[data-v-657d976e]{display:flex;align-items:center;height:100%;width:100%;color:inherit;font-size:inherit;font-weight:inherit}.menu-item.hover-effect[data-v-657d976e]{cursor:pointer}.menu-item.hover-effect[data-v-657d976e]:hover{color:var(--color-primary-label);background:var(--color-active-background)}.menu-item .icon[data-v-657d976e]{color:var(--color-quaternary-label);margin-left:auto}.menu-item .icon.hover-effect[data-v-657d976e]{display:none}.menu-item .icon.icon-visible[data-v-657d976e]{display:block}.menu-item .component[data-v-657d976e]{margin-left:auto}.divider[data-v-657d976e]{margin:0 8px}
.information-container[data-v-d5f5f614]{display:inline-block;width:100%;color:var(--color-primary-label);font-size:16px;position:absolute;bottom:0}.information-wrapper[data-v-d5f5f614]{-webkit-user-select:none;user-select:none;cursor:pointer;position:relative;margin-bottom:20px;height:48px;width:100%;display:flex;font-weight:600;align-items:center;border-radius:999px}.information-wrapper[data-v-d5f5f614]:hover{background:var(--color-active-background)}.information-wrapper .information-icon[data-v-d5f5f614]{margin:0 12px 0 16px}.information-pad[data-v-d5f5f614]{z-index:16;width:100%;position:absolute;bottom:72px}.app-info[data-v-d5f5f614]{padding:12px;color:var(--color-tertiary-label)}.app-info a[data-v-d5f5f614]{color:var(--color-tertiary-label)}.app-info.outside[data-v-d5f5f614]{position:absolute}.icp-info[data-v-d5f5f614]{word-break:break-word;margin:0;font-size:12px;line-height:140%}.icp-info .icp-text[data-v-d5f5f614]{font-weight:400}.corp-info[data-v-d5f5f614]{font-size:12px;line-height:140%;margin-top:4px}.corp-info p[data-v-d5f5f614]{margin:0}.vertical-center[data-v-d5f5f614]{display:inline-flex;align-items:center}.vertical-center:hover .icon-wrapper[data-v-d5f5f614]{color:var(--color-secondary-label)}.icon-wrapper color $color-tertiary-label[data-v-d5f5f614]:hover{color:var(--color-secondary-label)}.about-us[data-v-d5f5f614]{margin-bottom:8px}.about-us a[data-v-d5f5f614]{font-weight:500}.icon-gap[data-v-d5f5f614]{margin-left:2px}.dot[data-v-d5f5f614]{color:var(--color-quaternary-label)}.help[data-v-d5f5f614]{cursor:pointer}
li[data-v-546196d0]{list-style:none}ul[data-v-546196d0]{margin:0;padding:0}.icon-wrapper[data-v-546196d0]{color:var(--color-primary-label)}.side-bar[data-v-546196d0]{height:calc(100vh - 72px);overflow-y:scroll;background-color:var(--color-background);display:flex;flex-direction:column;flex-shrink:0;padding-top:16px;margin-top:72px;position:fixed;overflow:visible}@media screen and (min-width:1728px){.side-bar[data-v-546196d0]{width:calc(16px + calc((1728px - 7 * 32px) / 6 * 1));margin-left:16px}}@media screen and (min-width:1424px) and (max-width:1727px){.side-bar[data-v-546196d0]{width:calc(16px + calc((100vw - 7 * 32px) / 6 * 1));margin-left:16px}}@media screen and (min-width:1192px) and (max-width:1423px){.side-bar[data-v-546196d0]{width:calc(12px + calc((100vw - 6 * 24px) / 5 * 1));margin-left:12px}}@media screen and (min-width:960px) and (max-width:1191px){.side-bar[data-v-546196d0]{width:calc(12px + calc((100vw - 5 * 24px) / 4 * 1));margin-left:12px}}@media screen and (min-width:696px) and (max-width:959px){.side-bar[data-v-546196d0]{display:none}}@media screen and (max-width:695px){.side-bar[data-v-546196d0]{display:none}}.side-bar.gray[data-v-546196d0]{filter:grayscale(0.95)}[data-v-546196d0] .link-wrapper{display:flex;width:100%;height:48px;align-items:center}.channel-list[data-v-546196d0]{min-height:auto;-webkit-user-select:none;user-select:none}.channel-list[data-v-546196d0] li{padding-left:16px;min-height:48px;display:flex;align-items:center;cursor:pointer;margin-bottom:8px;color:var(--color-tertiary-label)}.channel-list[data-v-546196d0] li:hover{background-color:var(--color-active-background);border-radius:999px}.channel-list[data-v-546196d0] li:last-child{margin-bottom:0}[data-v-546196d0] .channel{font-size:16px;font-weight:600;margin-left:12px;color:var(--color-primary-label)}[data-v-546196d0] a{color:var(--color-tertiary-label);font-size:12px;font-weight:600}[data-v-546196d0] .active-channel{background-color:var(--color-active-background);border-radius:999px;color:var(--color-primary-label)}.img-wrapper[data-v-546196d0]{width:24px;height:24px;justify-content:center;align-items:center;display:inline-flex}[data-v-546196d0] .link-wrapper{display:flex;width:100%;height:48px;align-items:center}
.reds-button-new[data-v-d957886a]{height:40px !important;color:var(--color-secondary-label);font-size:16px;line-height:120%;padding:0 16px;background:transparent}.reds-button-new[data-v-d957886a]:hover{background:var(--color-active-background);border-radius:999px;color:var(--color-primary-label)}.reds-button-new[data-v-d957886a] .reds-button-new-box{font-weight:400}.transparent .menu button[data-v-d957886a],.transparent .menu .menu-icon-btn[data-v-d957886a]{color:rgba(255,255,255,0.8)}.transparent button[data-v-d957886a]:hover .reds-button-new-box{color:var(--color-primary-label)}.menu[data-v-d957886a]{display:flex}.link[data-v-d957886a]{display:inline-flex;flex-grow:1;color:inherit;height:100%;align-items:center;width:100%}.channel-btn[data-v-d957886a]{color:var(--color-secondary-label)}.channel-btn[data-v-d957886a]:hover{color:var(--color-primary-label)}.icon[data-v-d957886a]{color:var(--color-quaternary-label)}.dropdown-nav[data-v-d957886a]{display:flex}@media screen and (max-width:959px){.dropdown-nav[data-v-d957886a]{display:none}}.menu-icon-dropdown-nav[data-v-d957886a]{position:relative;display:none}@media screen and (max-width:959px){.menu-icon-dropdown-nav[data-v-d957886a]{display:block}}.menu-icon-dropdown-nav .information-pad[data-v-d957886a]{z-index:16;width:223px;margin-top:4px;position:absolute;right:0}.force-visible[data-v-d957886a]{display:block}
.user-item-box[data-v-f7c244c6]{display:flex;align-items:center;padding:20px}@media screen and (min-width:696px) and (max-width:959px){.user-item-box[data-v-f7c244c6]{padding:16px}}@media screen and (max-width:695px){.user-item-box[data-v-f7c244c6]{padding:12px 16px}}.user-item-box.sug[data-v-f7c244c6]{padding:0}.avatar[data-v-f7c244c6]{display:flex}.avatar .user-image[data-v-f7c244c6]{width:72px;height:72px;border-radius:72px;border:1px solid var(--color-border);object-fit:cover;background:var(--color-active-background)}.avatar .user-image.sug[data-v-f7c244c6]{width:40px;height:40px}@media screen and (min-width:960px) and (max-width:1191px){.avatar .user-image[data-v-f7c244c6]{width:64px;height:64px}}@media screen and (min-width:696px) and (max-width:959px){.avatar .user-image[data-v-f7c244c6]{width:56px;height:56px}}@media screen and (max-width:695px){.avatar .user-image[data-v-f7c244c6]{width:40px;height:40px}}.user-info[data-v-f7c244c6]{display:flex;flex-direction:column;color:var(--color-tertiary-label);font-size:14px;font-weight:400;line-height:120%;margin:0 20px;width:100%}.user-info.sug[data-v-f7c244c6]{font-size:12px;margin:0 12px}@media screen and (min-width:696px) and (max-width:959px){.user-info[data-v-f7c244c6]{margin:0 16px}}@media screen and (max-width:695px){.user-info[data-v-f7c244c6]{font-size:12px;margin:0 12px;width:calc(100vw - 200px)}}.user-info .user-name-box[data-v-f7c244c6]{display:flex;align-items:center}.user-info .user-name-box .user-name[data-v-f7c244c6]{display:flex;align-items:center;justify-content:center;color:var(--color-primary-label);font-size:18px;font-weight:600;line-height:120%;margin-right:6px;white-space:nowrap}.user-info .user-name-box .user-name.sug[data-v-f7c244c6]{font-size:16px}@media screen and (max-width:959px){.user-info .user-name-box .user-name[data-v-f7c244c6]{font-size:16px}}.user-info .user-name-box .verify-icon[data-v-f7c244c6]{display:flex;margin-left:2px}.user-info .user-name-box .user-tag[data-v-f7c244c6]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;height:20px;margin-right:4px;font-size:12px;font-weight:400;line-height:120%;padding:3px 4px;color:var(--color-tertiary-label);border-radius:4px;background:var(--color-active-background);white-space:nowrap}.user-info .user-desc[data-v-f7c244c6]{display:flex;margin-top:6px;white-space:nowrap}@media screen and (max-width:695px){.user-info .user-desc[data-v-f7c244c6]{margin-top:4px}}.user-info .user-desc .user-desc-box[data-v-f7c244c6]{display:flex;align-items:center}.divider[data-v-f7c244c6]{margin:0 8px;display:inline-block;height:12px;border:.5px solid var(--color-border)}.divider.sug[data-v-f7c244c6]{margin:0 6px}@media screen and (max-width:695px){.divider[data-v-f7c244c6]{margin:0 6px}}.btn[data-v-f7c244c6]{margin-left:auto}
.history[data-v-ac555648]{padding:4px}.history-list[data-v-ac555648]{display:flex;align-items:center;padding:0 8px 8px 8px;flex-wrap:wrap;position:relative;gap:8px}.history-list .history-item[data-v-ac555648]{display:flex;align-items:center;justify-content:center;height:32px;color:var(--color-secondary-label);font-size:14px;font-weight:400;line-height:120%;padding:0 12px;white-space:nowrap;background:var(--color-active-background);border-radius:999px;border:1px solid transparent;cursor:pointer}.history-list .history-item.enableDelete[data-v-ac555648]{background:transparent;border:1px solid var(--color-border);height:32px;padding:0 6px 0 12px;cursor:auto}.history-list .history-item.enableDelete[data-v-ac555648]:hover{color:var(--color-secondary-label)}.history-list .history-item[data-v-ac555648]:hover{color:var(--color-primary-label)}.history-list .history-item .close-box[data-v-ac555648]{display:flex;align-items:center;justify-content:center;height:20px;width:20px;flex:0 0 20px;margin-left:6px;cursor:pointer}.history-list .history-item .close-box[data-v-ac555648]:hover{border-radius:999px;background:var(--color-active-background);color:var(--color-primary-label)}.history-list .chevron-icon[data-v-ac555648]{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border:1px solid var(--color-border);transform:rotateX(180deg);border-radius:999px;cursor:pointer;color:var(--color-secondary-label)}.history-list .chevron-icon[data-v-ac555648]:hover{background:var(--color-active-background);color:var(--color-primary-label)}.history-list .chevron-icon.canSpand[data-v-ac555648]{transform:revert}.header[data-v-ac555648]{display:flex;padding:0 4px 0 12px;align-items:center;height:32px;font-style:normal;font-weight:400;font-size:12px;line-height:120%;color:var(--color-tertiary-label)}.header .icon-group[data-v-ac555648]{display:flex;margin-left:auto;font-size:12px;font-weight:400;line-height:$line-height-default;color:var(--color-secondary-label);gap:4px}.header .icon-group .icon-box[data-v-ac555648]{display:flex;align-items:center;justify-content:center;height:24px;width:24px;gap:4px;padding:0 4px;cursor:pointer}.header .icon-group .icon-box.enableDelete[data-v-ac555648]{width:auto}.header .icon-group .icon-box[data-v-ac555648]:hover{color:var(--color-primary-label)}
.hotspots[data-v-119fe976]{padding:4px}.header[data-v-119fe976]{padding:8px 12px;height:32px}.header .header-img[data-v-119fe976]{height:14px}.hotspot-item[data-v-119fe976]{padding:0 12px;display:flex;align-items:center;height:40px;cursor:pointer;color:var(--color-tertiary-label)}.hotspot-item[data-v-119fe976]:nth-child(1){color:#ff2442}.hotspot-item[data-v-119fe976]:nth-child(2){color:#ff3e33}.hotspot-item[data-v-119fe976]:nth-child(3){color:#ff5226}.hotspot-item[data-v-119fe976]:hover{background:var(--color-active-background);border-radius:8px}.hotspot-item:hover > .hotspot-title[data-v-119fe976]{color:var(--color-primary-label)}.hotspot-item .hotspot-index[data-v-119fe976]{display:flex;align-items:center;justify-content:center;font-weight:500;font-size:14px;line-height:120%;width:16px;height:16px}.hotspot-item .hotspot-title[data-v-119fe976]{margin:0 6px;color:var(--color-secondary-label);font-weight:400;font-size:16px;line-height:120%;display:flex;align-items:center;height:100%;flex:1}.hotspot-item .hotspot-title .text[data-v-119fe976]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hotspot-item .hotspot-title img[data-v-119fe976]{margin-left:6px;height:14px}.hotspot-item .hotspot-score[data-v-119fe976]{color:var(--color-quaternary-label);margin-left:auto;font-weight:400;font-size:12px;line-height:120%}
.sug-container-wrapper[data-v-57872acf]{margin-top:8px;width:100%;background-color:var(--elevation-high-background);box-shadow:var(--elevation-high-shadow);border-radius:12px;overflow:scroll}.sug-container-wrapper.query-trending[data-v-57872acf]{position:relative;padding-top:100%}.sug-container.query-trending[data-v-57872acf]{width:100%;position:absolute;top:0}.sug-box[data-v-57872acf]{padding:4px}.header[data-v-57872acf]{display:flex;padding:10.5px 12px 10.5px 12px;align-items:center;height:32px;font-style:normal;font-weight:400;font-size:12px;line-height:120%;color:var(--color-tertiary-label)}.header .refresh[data-v-57872acf]{margin-left:auto;display:flex;align-items:center;color:var(--color-secondary-label);cursor:pointer}.header .refresh .icon[data-v-57872acf]{margin-right:5.5px;opacity:.8}.header .refresh[data-v-57872acf]:hover{color:var(--color-primary-label)}.sug-wrapper[data-v-57872acf]{display:flex;flex-wrap:wrap}.sug-wrapper .sug-item[data-v-57872acf]{width:100%;padding:0 12px;font-size:16px;height:40px;line-height:120%;font-weight:400;border-radius:8px;color:var(--color-tertiary-label);display:flex;align-items:center}.sug-wrapper .sug-item[data-v-57872acf]:hover{background-color:var(--color-active-background);cursor:pointer}.sug-wrapper .sug-item .highlight[data-v-57872acf]{color:var(--color-primary-label)}.sug-wrapper .query-trending[data-v-57872acf]{color:var(--color-secondary-label);width:100%}.sug-wrapper .query-trending[data-v-57872acf]:hover{color:var(--color-primary-label)}.sug-wrapper .query-trending .sug-text[data-v-57872acf]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:flex;align-items:center;justify-content:center;height:20px}.sug-wrapper .query-trending.selected[data-v-57872acf]{background-color:var(--color-active-background);color:var(--color-primary-label)}.sug-wrapper .query-trending.hotspot[data-v-57872acf]{width:calc(50% - 2px)}.sug-wrapper .query-trending.hotspot[data-v-57872acf]:nth-child(even){margin-left:2px}.sug-wrapper .query-trending.hotspot[data-v-57872acf]:nth-child(odd){margin-right:2px}.sug-wrapper .selected-sug[data-v-57872acf]{background-color:var(--color-active-background)}.sug-wrapper .sug-user[data-v-57872acf]{height:64px}.sug-style[data-v-57872acf]{display:flex;align-items:center;justify-content:center;margin-left:4px;height:100%;padding:0 3px;font-weight:500;font-size:12px;line-height:120%;border-radius:4px}.sug-style.artificial[data-v-57872acf]{background:var(--color-blue);color:var(--color-white)}
.transparent-icon[data-v-721de8bd]{color:var(--color-secondary-label) !important}.transparent-icon[data-v-721de8bd]:hover{color:var(--color-primary-label) !important}.input-box[data-v-721de8bd]{height:40px;position:fixed;left:50%;transform:translate(-50%)}@media screen and (min-width:1728px){.input-box[data-v-721de8bd]{width:calc(32px + calc((1728px - 7 * 32px) / 6 * 2))}}@media screen and (min-width:1424px) and (max-width:1727px){.input-box[data-v-721de8bd]{width:calc(32px + calc((100vw - 7 * 32px) / 6 * 2))}}@media screen and (min-width:1192px) and (max-width:1423px){.input-box[data-v-721de8bd]{width:calc(24px + calc((100vw - 6 * 24px) / 5 * 2))}}@media screen and (min-width:960px) and (max-width:1191px){.input-box[data-v-721de8bd]{width:calc(24px + calc((100vw - 5 * 24px) / 4 * 2))}}@media screen and (min-width:696px) and (max-width:959px){.input-box[data-v-721de8bd]{width:calc(24px + calc((100vw - 4 * 24px) / 3 * 2))}}@media screen and (max-width:695px){.input-box[data-v-721de8bd]{width:calc(12px + calc((100vw - 3 * 12px) / 2 * 2))}}@media screen and (max-width:695px){.input-box[data-v-721de8bd]{width:0}}.input-box.minWidthShowSearchClass[data-v-721de8bd]{position:relative;left:0;transform:translate(0);width:100%}.search-input[data-v-721de8bd]{padding:0 84px 0 16px;width:100%;height:100%;font-size:16px;line-height:120%;color:var(--color-primary-label);caret-color:var(--color-red);background:var(--color-active-background);border-radius:999px}@media screen and (max-width:695px){.search-input[data-v-721de8bd]{padding:0}}.search-input[data-v-721de8bd]::placeholder{color:var(--color-quaternary-label)}.search-input.minWidthShowSearchClass[data-v-721de8bd]{padding:0 84px 0 16px}.search-input.showSearcHotspotTag[data-v-721de8bd]{color:transparent}@media screen and (max-width:695px){.sug-pad[data-v-721de8bd]{opacity:0}}.sug-pad.minWidthShowSearchClass[data-v-721de8bd]{opacity:1}.input-button[data-v-721de8bd]{position:absolute;right:0;top:0;display:flex;align-items:center;justify-content:center;height:100%;color:var(--color-secondary-label)}@media screen and (max-width:695px){.input-button[data-v-721de8bd]{opacity:0}}.input-button .search-icon[data-v-721de8bd],.input-button .close-icon[data-v-721de8bd]{width:40px;height:100%;display:flex;align-items:center;justify-content:center;cursor:pointer;color:var(--color-secondary-label)}.input-button .search-icon[data-v-721de8bd]:hover,.input-button .close-icon[data-v-721de8bd]:hover{color:var(--color-primary-label);border-radius:999px}.input-button.minWidthShowSearchClass[data-v-721de8bd]{opacity:1}.search-icon[data-v-721de8bd]{margin-right:4px;color:var(--color-secondary-label)}.reds-button-new[data-v-721de8bd]{height:40px !important;color:var(--color-secondary-label);font-size:16px;line-height:120%;padding:0 16px;background:transparent}.reds-button-new[data-v-721de8bd]:hover{background:var(--color-active-background);border-radius:999px;color:var(--color-primary-label)}.reds-button-new[data-v-721de8bd] .reds-button-new-box{font-weight:400}.cancel-btn[data-v-721de8bd]{margin-left:12px}.min-width-search-icon[data-v-721de8bd]{cursor:pointer;padding-right:10px;display:none}@media screen and (max-width:695px){.min-width-search-icon[data-v-721de8bd]{display:block;position:fixed;right:52px}}.nio-search-input-width[data-v-721de8bd]{width:calc(100vw - 24px * 2 - 40px * 2 - 8px * 2)}.hotspot-tag[data-v-721de8bd]{position:absolute;top:4px;left:4px;height:32px;padding:0 12px;background:var(--color-background);border-radius:999px;display:flex;align-items:center;justify-content:center;font-weight:400;font-size:16px;line-height:120%;max-width:calc(100% - 88px);cursor:pointer;color:var(--color-red)}.hotspot-tag .text[data-v-721de8bd]{margin-left:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;color:var(--color-primary-label)}
header[data-v-5c1b2170]{position:relative;display:flex;align-items:center;justify-content:space-between;width:100%;max-width:var(--67f219a2);height:var(--header-height);padding:0 16px 0 24px;z-index:10}@media screen and (min-width:1728px){header[data-v-5c1b2170]{padding:0 32px}}@media screen and (min-width:1424px) and (max-width:1727px){header[data-v-5c1b2170]{padding:0 32px}}@media screen and (max-width:695px){header[data-v-5c1b2170]{padding:0 12px 0 16px}}header.mask-paper[data-v-5c1b2170]{background:var(--mask-paper);-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px)}.right[data-v-5c1b2170]{display:flex}.information-header[data-v-5c1b2170]{position:absolute;top:72px;left:0;z-index:10}.header-container[data-v-5c1b2170]{display:flex;flex-direction:column;justify-content:center;width:100vw;height:72px;position:fixed;left:0;top:0;z-index:10;align-items:center}.header-container.gray[data-v-5c1b2170]{filter:grayscale(0.95)}.header-container.transparent[data-v-5c1b2170]{position:absolute}.header-logo[data-v-5c1b2170]{width:auto;height:32px}
.layout[data-v-34b87540]{width:100%;overflow:hidden;background-color:var(--color-background);margin:0 auto;min-width:320px}.layout.limit[data-v-34b87540]{max-width:var(--40bdee49)}.main-container[data-v-34b87540]{display:flex}.main-content[data-v-34b87540]{width:100%}@media screen and (min-width:1728px){.main-content.with-side-bar[data-v-34b87540]{padding-left:calc(32px + calc((1728px - 7 * 32px) / 6 * 1))}}@media screen and (min-width:1424px) and (max-width:1727px){.main-content.with-side-bar[data-v-34b87540]{padding-left:calc(32px + calc((100vw - 7 * 32px) / 6 * 1))}}@media screen and (min-width:1192px) and (max-width:1423px){.main-content.with-side-bar[data-v-34b87540]{padding-left:calc(24px + calc((100vw - 6 * 24px) / 5 * 1))}}@media screen and (min-width:960px) and (max-width:1191px){.main-content.with-side-bar[data-v-34b87540]{padding-left:calc(24px + calc((100vw - 5 * 24px) / 4 * 1))}}
.collection-list-item-wrapper[data-v-355e9ea1]{flex-shrink:0;border-radius:16px;width:var(--987b0b72);height:var(--987b0b72);position:relative;margin-right:var(--442acb1c);cursor:pointer}.collection-list-item-wrapper .collection-list-item-title[data-v-355e9ea1]{position:absolute;bottom:12px;left:12px;color:var(--color-white);font-size:16px;font-weight:600;line-height:120%;text-shadow:0 1px 4px rgba(0,0,0,0.25)}.collection-list-item-wrapper .collection-list-item-tag[data-v-355e9ea1]{position:absolute;right:8.334px;top:8px;width:24px;height:24px;padding:6px;display:flex;align-items:center;justify-content:center;background:var(--material-background);border-radius:999px;-webkit-backdrop-filter:blur(15px);backdrop-filter:blur(15px)}.collection-list-item-wrapper .collection-list-item-decorate[data-v-355e9ea1]{width:69px;border-radius:16px;border:1px solid var(--color-shadow-border);background:var(--color-active-background)}.collection-list-item-wrapper .decorate1[data-v-355e9ea1]{position:absolute;right:-15.667px;top:12px;height:calc(var(--987b0b72) - 25px)}.collection-list-item-wrapper .decorate2[data-v-355e9ea1]{position:absolute;right:-7.667px;top:5px;height:calc(var(--987b0b72) - 10px)}
.collection-list-wrapper[data-v-8cb274da]{display:flex;width:100%;overflow:scroll;padding-right:24px}
.skeleton-container[data-v-3f370206]{position:relative;margin:0 auto;width:100%;height:calc(100vh - 88px);overflow:hidden;transition:width .5s}.img[data-v-3f370206]{position:absolute;left:0;top:0;width:var(--78cabcb1);color:var(--color-active-background)}
.feeds-page[data-v-f3020152]{flex:1;padding:0 var(--5f14e45a);overflow-y:scroll;padding-top:72px}.feeds-page .channel-container[data-v-f3020152]{display:flex;justify-content:space-between;align-items:center;user-select:none;-webkit-user-select:none}.feeds-page .channel-container[data-v-f3020152] .channel-list{flex:1;margin-bottom:0}.feeds-page .channel-container[data-v-f3020152] .channel-scroll-container{-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);background-color:transparent}.rec-title[data-v-f3020152]{color:var(--color-primary-label);font-size:16px;font-weight:600;line-height:120%;margin-bottom:16px}
.nio-header[data-v-1721c56b]{position:fixed;width:100vw;height:64px;display:flex;align-items:center;justify-content:center;padding:24px 36px;color:var(--color-primary-label);font-size:16px;font-weight:600;line-height:120%;border-bottom:1px solid var(--color-border);z-index:10;background:var(--color-background)}.close-box[data-v-1721c56b]{width:40px;height:40px;cursor:pointer;position:absolute;left:0;top:calc(50% - 20px);margin-left:24px;z-index:5;border-radius:999px;display:flex;align-items:center;justify-content:center}.close-box[data-v-1721c56b]:hover{background:var(--color-active-background);color:var(--color-primary-label)}
header[data-v-5da00110]{position:relative;display:flex;align-items:center;justify-content:space-between;width:100%;max-width:var(--20c4f496);height:72px;padding:0 16px 0 24px;z-index:10;border-bottom:1px solid var(--color-border)}@media screen and (min-width:1728px){header[data-v-5da00110]{padding:0 32px}}@media screen and (min-width:1424px) and (max-width:1727px){header[data-v-5da00110]{padding:0 32px}}@media screen and (max-width:695px){header[data-v-5da00110]{padding:0 12px 0 16px}}header.mask-paper[data-v-5da00110]{background:var(--mask-paper);-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px)}.right[data-v-5da00110]{display:flex}.information-header[data-v-5da00110]{position:absolute;top:72px;left:0;z-index:10}.header-container[data-v-5da00110]{display:flex;flex-direction:column;justify-content:center;width:100vw;height:72px;position:fixed;left:0;top:0;z-index:10;align-items:center}.header-container.gray[data-v-5da00110]{filter:grayscale(0.95)}.header-container.transparent[data-v-5da00110]{position:absolute}.close-box[data-v-5da00110]{width:40px;height:40px;cursor:pointer;top:calc(50% - 20px);z-index:5;border-radius:999px;display:flex;align-items:center;justify-content:center}.close-box[data-v-5da00110]:hover{background:var(--color-active-background);color:var(--color-primary-label)}
.layout[data-v-4968c87e]{width:100%;overflow:hidden;background-color:var(--color-background);margin:0 auto;min-width:320px}.layout.limit[data-v-4968c87e]{max-width:var(--9c8fe97c)}.main-container[data-v-4968c87e]{display:flex}.main-content[data-v-4968c87e]{width:100%}
.iphone[data-v-0e6d046c]{width:300px;height:600px;position:relative}.iphone .iphone-mp4[data-v-0e6d046c]{position:absolute;width:260px;height:564px;margin:18px 20px}.iphone .iphone-mp4 .my-video[data-v-0e6d046c]{width:260px;height:564px}.iphone .iphone-case[data-v-0e6d046c]{position:absolute;width:300px;height:600px;background-image:url("//ci.xiaohongshu.com/3ca6607e-d4a5-4cb9-b455-a746713d8283");background-repeat:no-repeat;background-size:contain}@media screen and (min-height:900px){.iphone[data-v-0e6d046c]{zoom:1}}@media screen and (min-height:820px) and (max-height:900px){.iphone[data-v-0e6d046c]{zoom:.9}}@media screen and (max-height:820px){.iphone[data-v-0e6d046c]{zoom:.8}}@media screen and (max-height:720px){.iphone[data-v-0e6d046c]{zoom:.7}}@media screen and (max-height:540px){.iphone[data-v-0e6d046c]{zoom:.6}}
.container[data-v-f857e7a0]{top:0;left:0;right:0;bottom:0;position:fixed}.video-bg[data-v-f857e7a0]{position:absolute;right:0;bottom:0;left:0;top:0}.video-bg[data-v-f857e7a0]:before{content:'';position:absolute;width:100%;height:100%;background:rgba(0,0,0,0)}.video-bg .my-video[data-v-f857e7a0]{min-width:100%;min-height:100%}.content[data-v-f857e7a0]{position:relative;left:0;top:0;right:0;bottom:0;width:100%;height:100%}.content .middle[data-v-f857e7a0]{top:0;left:0;right:0;bottom:0;position:absolute;width:100%;height:100%}.content .middle .middle-wrapper[data-v-f857e7a0]{top:50%;left:50%;transform:translate(-60%,-60%);display:flex;flex-direction:row;justify-content:center;align-items:center;position:absolute}.content .middle .middle-wrapper .iphone-wrapper[data-v-f857e7a0]{margin-right:60px}.content .middle .middle-wrapper .description[data-v-f857e7a0]{display:flex;flex-direction:column;justify-content:center;align-items:flex-start}.content .middle .middle-wrapper .description .logo-big[data-v-f857e7a0]{width:143px;height:50px;background-image:url("//ci.xiaohongshu.com/83074709-0d05-4d1c-9d38-24a8e910d914");background-size:contain;background-repeat:no-repeat;background-position:center center}.content .middle .middle-wrapper .description .lifestyle[data-v-f857e7a0]{white-space:nowrap;color:#fff;font-size:48px;font-weight:500;margin:0;margin-top:13px}.content .middle .middle-wrapper .description .lifestyle-english[data-v-f857e7a0]{white-space:nowrap;color:#fff;font-size:14px;font-family:Helvetica,Arial,sans-serif;font-style:oblique;font-weight:400;margin:0;margin-top:20px}.content .middle .middle-wrapper .description .qrcodes[data-v-f857e7a0]{margin-top:36px;display:flex;flex-direction:row;justify-content:flex-start;align-items:center;color:#333}.content .middle .middle-wrapper .description .qrcodes div[data-v-f857e7a0]{display:flex;flex-direction:row;justify-content:center;align-items:center;width:150px;height:40px;border-radius:20px;background-color:#fff;margin-right:15px;cursor:pointer;position:relative}.content .middle .middle-wrapper .description .qrcodes div[data-v-f857e7a0]:before{content:'';position:absolute;top:35px;left:0;width:100%;height:142px;border-radius:0 0 20px 20px;background-color:#fff;opacity:0;visibility:hidden}.content .middle .middle-wrapper .description .qrcodes div[data-v-f857e7a0]:after{content:'';position:absolute;top:40px;left:8px;width:134px;height:134px;border-radius:12px 12px 12px 12px;background-image:url("//ci.xiaohongshu.com/0b84da4e-3984-4603-a2f2-72a806e5494d");background-repeat:no-repeat;background-size:contain;opacity:0;visibility:hidden}.content .middle .middle-wrapper .description .qrcodes div[data-v-f857e7a0]:hover{border-radius:20px 20px 0 0}.content .middle .middle-wrapper .description .qrcodes div[data-v-f857e7a0]:hover:before{top:40px;opacity:1;visibility:visible}.content .middle .middle-wrapper .description .qrcodes div[data-v-f857e7a0]:hover:after{top:40px;opacity:1;visibility:visible}.content .middle .middle-wrapper .description .qrcodes div span[data-v-f857e7a0]{display:inline-block;width:24px;height:24px;margin-right:6px}.content .middle .middle-wrapper .description .qrcodes .android[data-v-f857e7a0]:after{background-image:url("//ci.xiaohongshu.com/8aa9236a-43ef-44f0-97d3-3167847de82a")}@media screen and (min-height:900px){.middle-wrapper[data-v-f857e7a0]{zoom:1}}@media screen and (min-height:820px) and (max-height:900px){.middle-wrapper[data-v-f857e7a0]{zoom:.9}}@media screen and (max-height:820px){.middle-wrapper[data-v-f857e7a0]{zoom:.8}}@media screen and (max-height:720px){.middle-wrapper[data-v-f857e7a0]{zoom:.7}}@media screen and (max-height:540px){.middle-wrapper[data-v-f857e7a0]{zoom:.6}}@media screen and (min-width:1250px) and (max-width:1400px){.footer[data-v-f857e7a0]{zoom:.9}}@media screen and (max-width:1250px) and (min-width:1101px){.header[data-v-f857e7a0]{zoom:.9}.footer[data-v-f857e7a0]{zoom:.8}}@media screen and (max-width:1101px) and (min-width:1030px){.header[data-v-f857e7a0]{zoom:.8}.footer[data-v-f857e7a0]{zoom:.7}}@media screen and (max-width:1030px) and (min-width:1024px){.header[data-v-f857e7a0]{zoom:.8}.footer[data-v-f857e7a0]{zoom:.6}}@media screen and (max-width:1024px){.header[data-v-f857e7a0]{zoom:.8}.footer[data-v-f857e7a0]{zoom:.6}}
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
/* Document
========================================================================== */
/**
* 1. Correct the line height in all browsers.
* 2. Prevent adjustments of font size after orientation changes in iOS.
*/
html {
line-height: 1.15; /* 1 */
-webkit-text-size-adjust: 100%; /* 2 */
}
/* Sections
========================================================================== */
/**
* Remove the margin in all browsers.
*/
body {
margin: 0;
}
/**
* Render the `main` element consistently in IE.
*/
main {
display: block;
}
/**
* Correct the font size and margin on `h1` elements within `section` and
* `article` contexts in Chrome, Firefox, and Safari.
*/
h1 {
font-size: 2em;
margin: 0.67em 0;
}
/* Grouping content
========================================================================== */
/**
* 1. Add the correct box sizing in Firefox.
* 2. Show the overflow in Edge and IE.
*/
hr {
box-sizing: content-box; /* 1 */
height: 0; /* 1 */
overflow: visible; /* 2 */
}
/**
* 1. Correct the inheritance and scaling of font size in all browsers.
* 2. Correct the odd `em` font sizing in all browsers.
*/
pre {
font-family: monospace, monospace; /* 1 */
font-size: 1em; /* 2 */
}
/* Text-level semantics
========================================================================== */
/**
* Remove the gray background on active links in IE 10.
*/
a {
background-color: transparent;
}
/**
* 1. Remove the bottom border in Chrome 57-
* 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
*/
abbr[title] {
border-bottom: none; /* 1 */
text-decoration: underline; /* 2 */
-webkit-text-decoration: underline dotted;
text-decoration: underline dotted; /* 2 */
}
/**
* Add the correct font weight in Chrome, Edge, and Safari.
*/
b,
strong {
font-weight: bolder;
}
/**
* 1. Correct the inheritance and scaling of font size in all browsers.
* 2. Correct the odd `em` font sizing in all browsers.
*/
code,
kbd,
samp {
font-family: monospace, monospace; /* 1 */
font-size: 1em; /* 2 */
}
/**
* Add the correct font size in all browsers.
*/
small {
font-size: 80%;
}
/**
* Prevent `sub` and `sup` elements from affecting the line height in
* all browsers.
*/
sub,
sup {
font-size: 75%;
line-height: 0;
position: relative;
vertical-align: baseline;
}
sub {
bottom: -0.25em;
}
sup {
top: -0.5em;
}
/* Embedded content
========================================================================== */
/**
* Remove the border on images inside links in IE 10.
*/
img {
border-style: none;
}
/* Forms
========================================================================== */
/**
* 1. Change the font styles in all browsers.
* 2. Remove the margin in Firefox and Safari.
*/
button,
input,
optgroup,
select,
textarea {
font-family: inherit; /* 1 */
font-size: 100%; /* 1 */
line-height: 1.15; /* 1 */
margin: 0; /* 2 */
}
/**
* Show the overflow in IE.
* 1. Show the overflow in Edge.
*/
button,
input { /* 1 */
overflow: visible;
}
/**
* Remove the inheritance of text transform in Edge, Firefox, and IE.
* 1. Remove the inheritance of text transform in Firefox.
*/
button,
select { /* 1 */
text-transform: none;
}
/**
* Correct the inability to style clickable types in iOS and Safari.
*/
button,
[type="button"],
[type="reset"],
[type="submit"] {
-webkit-appearance: button;
}
/**
* Remove the inner border and padding in Firefox.
*/
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
border-style: none;
padding: 0;
}
/**
* Restore the focus styles unset by the previous rule.
*/
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
outline: 1px dotted ButtonText;
}
/**
* Correct the padding in Firefox.
*/
fieldset {
padding: 0.35em 0.75em 0.625em;
}
/**
* 1. Correct the text wrapping in Edge and IE.
* 2. Correct the color inheritance from `fieldset` elements in IE.
* 3. Remove the padding so developers are not caught out when they zero out
* `fieldset` elements in all browsers.
*/
legend {
box-sizing: border-box; /* 1 */
color: inherit; /* 2 */
display: table; /* 1 */
max-width: 100%; /* 1 */
padding: 0; /* 3 */
white-space: normal; /* 1 */
}
/**
* Add the correct vertical alignment in Chrome, Firefox, and Opera.
*/
progress {
vertical-align: baseline;
}
/**
* Remove the default vertical scrollbar in IE 10+.
*/
textarea {
overflow: auto;
}
/**
* 1. Add the correct box sizing in IE 10.
* 2. Remove the padding in IE 10.
*/
[type="checkbox"],
[type="radio"] {
box-sizing: border-box; /* 1 */
padding: 0; /* 2 */
}
/**
* Correct the cursor style of increment and decrement buttons in Chrome.
*/
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
height: auto;
}
/**
* 1. Correct the odd appearance in Chrome and Safari.
* 2. Correct the outline style in Safari.
*/
[type="search"] {
-webkit-appearance: textfield; /* 1 */
outline-offset: -2px; /* 2 */
}
/**
* Remove the inner padding in Chrome and Safari on macOS.
*/
[type="search"]::-webkit-search-decoration {
-webkit-appearance: none;
}
/**
* 1. Correct the inability to style clickable types in iOS and Safari.
* 2. Change font properties to `inherit` in Safari.
*/
::-webkit-file-upload-button {
-webkit-appearance: button; /* 1 */
font: inherit; /* 2 */
}
/* Interactive
========================================================================== */
/*
* Add the correct display in Edge, IE 10+, and Firefox.
*/
details {
display: block;
}
/*
* Add the correct display in all browsers.
*/
summary {
display: list-item;
}
/* Misc
========================================================================== */
/**
* Add the correct display in IE 10+.
*/
template {
display: none;
}
/**
* Add the correct display in IE 10.
*/
[hidden] {
display: none;
}
:root,.force-light{--color-primary-label:#333;--color-secondary-label:rgba(51,51,51,0.8);--color-tertiary-label:rgba(51,51,51,0.6);--color-quaternary-label:rgba(51,51,51,0.3);--color-link:#13386c;--color-inverted-label:#fff;--color-background:#fff;--color-active-background:rgba(0,0,0,0.03);--color-border:rgba(0,0,0,0.08);--color-shadow-border:rgba(0,0,0,0.02);--elevation-low-background:#fff;--elevation-high-background:#fff;--elevation-note-background:#fff;--elevation-low-shadow:0 2px 8px 0 rgba(0,0,0,0.04),0 1px 2px 0 rgba(0,0,0,0.02);--elevation-high-shadow:0 4px 32px 0 rgba(0,0,0,0.08),0 1px 4px 0 rgba(0,0,0,0.04);--elevation-note-shadow:0 8px 64px 0 rgba(0,0,0,0.04),0 1px 4px 0 rgba(0,0,0,0.02);--elevation-low-shadow-filter:drop-shadow(0 2px 8px rgba(0,0,0,0.04)) drop-shadow(0 1px 2px rgba(0,0,0,0.02));--elevation-high-shadow-filter:drop-shadow(0 4px 32px rgba(0,0,0,0.08)) drop-shadow(0 1px 4px rgba(0,0,0,0.04));--material-filter:saturate(150%) blur(10px);--material-background:rgba(64,64,64,0.25);--material-inverted-background:rgba(51,51,51,0.9);--mask-backdrop:rgba(0,0,0,0.25);--mask-note-card:rgba(0,0,0,0.25);--mask-paper:rgba(255,255,255,0.98);--color-white:#fff;--color-red:#ff2442;--color-tinted-red:rgba(255,36,66,0.06);--color-blue:#3d8af5;--color-tinted-blue:rgba(61,138,245,0.1);--mask-video-player-mask:linear-gradient(180deg,rgba(0,0,0,0.25) 0%,rgba(0,0,0,0) 24.48%,rgba(0,0,0,0) 50%,rgba(0,0,0,0.75) 100%);--search-hotspot-hint:linear-gradient(90deg,#ff2543 0%,#ff5225 100%);--color-vertical-channel:#fff9d5}:root[dark],.force-dark{--color-primary-label:#fff;--color-secondary-label:rgba(255,255,255,0.8);--color-tertiary-label:rgba(255,255,255,0.6);--color-quaternary-label:rgba(255,255,255,0.3);--color-link:#c7daef;--color-inverted-label:#0a0a0a;--color-background:#0a0a0a;--color-active-background:rgba(255,255,255,0.04);--color-border:rgba(255,255,255,0.08);--color-shadow-border:rgba(255,255,255,0.02);--elevation-low-background:#121212;--elevation-high-background:#181818;--elevation-note-background:#121212;--elevation-low-shadow:0 2px 8px 0 rgba(0,0,0,0.04),0 1px 2px 0 rgba(0,0,0,0.02),0 0 0 1px rgba(255,255,255,0.04) inset;--elevation-high-shadow:0 4px 32px 0 rgba(0,0,0,0.08),0 1px 4px 0 rgba(0,0,0,0.04),0 0 0 1px rgba(255,255,255,0.06) inset;--elevation-note-shadow:0 8px 64px 0 rgba(0,0,0,0.04),0 1px 4px 0 rgba(0,0,0,0.02);--elevation-low-shadow-filter:drop-shadow(0 2px 8px rgba(0,0,0,0.04)) drop-shadow(0 1px 2px rgba(0,0,0,0.02)) drop-shadow(0 0 1px rgba(255,255,255,0.04));--elevation-high-shadow-filter:drop-shadow(0 4px 32px rgba(0,0,0,0.08)) drop-shadow(0 1px 4px rgba(0,0,0,0.04)) drop-shadow(0 0 1px rgba(255,255,255,0.06));--material-filter:saturate(150%) blur(10px);--material-background:rgba(64,64,64,0.25);--material-inverted-background:rgba(255,255,255,0.9);--mask-backdrop:rgba(0,0,0,0.5);--mask-note-card:rgba(0,0,0,0.25);--mask-paper:rgba(10,10,10,0.98);--color-white:#fff;--color-red:#ff2e4d;--color-tinted-red:rgba(255,46,77,0.06);--color-blue:#3d8af5;--color-tinted-blue:rgba(61,138,245,0.1);--mask-video-player-mask:linear-gradient(180deg,rgba(0,0,0,0.25) 0%,rgba(0,0,0,0) 24.48%,rgba(0,0,0,0) 50%,rgba(0,0,0,0.75) 100%);--search-hotspot-hint:linear-gradient(90deg,#ff2543 0%,#ff5225 100%);--color-vertical-channel:#181714}html,body{font-size:14px;color:var(--color-primary-label);width:100vw !important;max-width:100%;font-family:system-ui,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif,BlinkMacSystemFont,Helvetica Neue,Arial,PingFang SC,PingFang TC,PingFang HK,Microsoft Yahei,Microsoft JhengHei;margin:0;background-color:var(--color-background);-webkit-font-smoothing:antialiased}::-webkit-scrollbar{background-color:var(--color-background);width:0;height:0}*{box-sizing:border-box;-webkit-user-select:auto;user-select:auto;scrollbar-width:none;-webkit-tap-highlight-color:transparent}h1{font-size:48px}h2{font-size:36px}h3{font-size:26px}h4{font-size:20px}a{text-decoration:none;background-color:transparent}input,button{-webkit-appearance:none;appearance:none;outline:none;border:none;background:none;padding:0}input:-webkit-autofill,input:-webkit-autofill:hover,input:-webkit-autofill:focus,input:-webkit-autofill:active{-webkit-box-shadow:0 0 0 1000px var(--elevation-high-background) inset;-webkit-text-fill-color:var(--color-primary-label)}input[type=number]{-moz-appearance:textfield}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}button{padding:0}.reds-toast{max-width:initial !important}input::-webkit-credentials-auto-fill-button{display:none !important;visibility:hidden;pointer-events:none;position:absolute;right:0}@media screen and (min-width:1728px){:root{--vertical:16;--horizontal:32;--interaction-width:440px;--horizontalGapPx:32px;--verticalGapPx:16px;--feeds-width:calc(1728px - 96px - calc((1728px - 7 * 32px) / 6 * 1));--feeds-columns:5;Line truncated
/*# sourceMappingURL=https://picasso-private-1251524319.cos.ap-shanghai.myqcloud.com/data/formula-static/formula/xhs-pc-web/index.2681e011.css.map*/</style><link rel="dns-prefetch" href="https://sns-webpic-qc.xhscdn.com">
<link rel="dns-prefetch" href="https://sns-avatar-qc.xhscdn.com">
<link rel="dns-prefetch" href="https://picasso-static.xiaohongshu.com">
<link rel="dns-prefetch" href="https://sns-video-qc.xhscdn.com">
<link rel="dns-prefetch" href="https://sns-video-hw.xhscdn.com">
<link rel="dns-prefetch" href="https://sns-video-bd.xhscdn.com">
<link rel="dns-prefetch" href="https://sns-video-qn.xhscdn.com">
<link rel="dns-prefetch" href="https://sns-video-hw.xhscdn.net">
<link rel="manifest" href="//fe-video-qc.xhscdn.com/fe-platform/ebf234fe97561cc2242114a0c5ba836eaf0848f8.json?attname=fe-platform/ebf234fe97561cc2242114a0c5ba836eaf0848f8.json.json">
<link rel="apple-touch-icon-precomposed" href="//picasso-static.xiaohongshu.com/fe-platform/f43dc4a8baf03678996c62d8db6ebc01a82256ff.png">
<link rel="apple-touch-icon" href="//picasso-static.xiaohongshu.com/fe-platform/f43dc4a8baf03678996c62d8db6ebc01a82256ff.png">
<meta name="og:image" content="//picasso-static.xiaohongshu.com/fe-platform/e6214e4fbfae2cf14d634d4296916e8a5eaefdf4.png">
<meta itemprop="image" content="//picasso-static.xiaohongshu.com/fe-platform/f43dc4a8baf03678996c62d8db6ebc01a82256ff.png">
<style>true</style>
<meta name="theme-color" content="rgb(255, 255, 255)">
<script type="text/javascript">(e=>{const t=localStorage.getItem("xhs-pc-theme")||"",o=null===(e=window.matchMedia("(prefers-color-scheme: dark)"))||void 0===e?void 0:e.matches;var r;(t&&"system"!==t?"dark"===t:o)&&(null===(r=document)||void 0===r||null===(r=r.querySelector("meta[name='theme-color']"))||void 0===r||r.setAttribute("content","rgb(10, 10, 10)"),document.documentElement.setAttribute("dark",""))})();</script>
<meta name="server-rendered" content><style type="text/css" data-href="https://fe-static.xhscdn.com/formula-static/xhs-pc-web/public/resource/css/async/minor.9cea1f52.css" data-inject="resource/css/async/minor.9cea1f52.css">.access-limit-container[data-v-74b2e5d4]{height:100vh;display:flex;align-items:center;justify-content:center}
.container[data-v-f123c5e6]{height:100vh;padding-top:var(--header-height);display:flex;align-items:center;justify-content:center}.wrapper[data-v-f123c5e6]{display:flex;align-items:center;justify-content:center;flex-direction:column;transform:translate(0,-16px)}p[data-v-f123c5e6]{margin:0;line-height:1}.title[data-v-f123c5e6]{margin-top:16px;color:var(--color-primary-label);font-size:18px;font-weight:600}.desc[data-v-f123c5e6]{margin-top:8px;color:var(--color-tertiary-label);font-size:16px}img[data-v-f123c5e6]{height:96px}button[data-v-f123c5e6]{margin-top:20px}
.all-issue[data-v-7889712d]{width:1002px;margin:0 auto}.all-issue .issue-wrapper .issue-selector[data-v-7889712d]{display:flex;flex-direction:row;justify-content:center;align-items:center}.all-issue .issue-wrapper .issue-selector .selector[data-v-7889712d]{width:200px;height:40px;border-radius:100px;background-color:#fff;text-align:center;line-height:40px;color:#747474;font-size:16px;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0 7px;padding:0 10px;position:relative}.all-issue .issue-wrapper .issue-selector .selector .tooltip-text[data-v-7889712d]{width:100%;visibility:hidden;background-color:#aeaeae;color:#fff;text-align:center;border-radius:6px;font-size:12px;height:16px;line-height:16px;padding:1px 5px;position:absolute;z-index:1;bottom:110%;left:0}.all-issue .issue-wrapper .issue-selector .selector.selected[data-v-7889712d]{color:#fff;background-color:#aeaeae}.all-issue .issue-wrapper .issue-selector .selector[data-v-7889712d]:hover{color:#fff;background-color:#aeaeae}.all-issue .issue-wrapper .issue-selector .selector:hover .tooltip-text[data-v-7889712d]{visibility:hidden}.all-issue .issue-wrapper .inner[data-v-7889712d]{margin-top:40px}.all-issue .issue-wrapper .inner .question[data-v-7889712d]{font-size:20px;line-height:1.25;text-align:left;font-weight:normal;color:#2c2c2c;margin:0}.all-issue .issue-wrapper .inner .content[data-v-7889712d]{font-size:15px;color:#818181;margin:16px 0 32px 0}
.inner-brief .content[data-v-292408c8]{width:1080px;margin:0 auto;position:relative;height:432px}.inner-brief .content .red-background[data-v-292408c8]{background:linear-gradient(to right,#ff5267,#ff7d8d);height:365px;width:980px;border-radius:8px;margin-left:50px;z-index:3;position:absolute;top:0;left:0}.inner-brief .content .all-list[data-v-292408c8]{overflow:hidden;position:absolute;width:100%;margin-top:50px;z-index:4;display:flex;flex-direction:row;justify-content:center;align-items:flex-start}.inner-brief .content .all-list .each-card[data-v-292408c8]{background:#fff;width:192px;height:233px;border-radius:4px;margin:0 19px;display:flex;flex-direction:column;justify-content:flex-start;align-items:center;padding:30px 15px 0}.inner-brief .content .all-list .each-card[data-v-292408c8]:first-child,.inner-brief .content .all-list .each-card[data-v-292408c8]:last-child{box-shadow:-2px 0 30px 0 rgba(255,39,65,0.1)}.inner-brief .content .all-list .each-card .pic[data-v-292408c8]{width:60px;height:60px;border-radius:50%;overflow:hidden;margin:0;margin-bottom:15px}.inner-brief .content .all-list .each-card .title[data-v-292408c8]{font-size:18px;margin:0;margin-bottom:10px;color:#555}.inner-brief .content .all-list .each-card .pra-one[data-v-292408c8],.inner-brief .content .all-list .each-card .pra-two[data-v-292408c8]{text-align:justify;font-size:15px;color:#999;margin:0 0 5px 0}.inner-brief .content .red-shadow[data-v-292408c8]{width:900px;height:50px;opacity:1;box-shadow:0 3px 60px 0 rgba(255,39,65,0.4);position:absolute;bottom:67px;left:50%;margin-left:-450px;z-index:2}.inner-brief .content .bottom-back[data-v-292408c8]{background:url("//ci.xiaohongshu.com/1b3a0f42-da7d-481e-8d4f-51cfa8943373") no-repeat;background-size:contain;width:834px;height:84px;display:block;z-index:1;position:absolute;bottom:1px;left:114px}.inner-brief .content .button-group[data-v-292408c8]{position:absolute;width:100%;bottom:44px;height:50px;display:flex;flex-direction:row;justify-content:center;align-items:flex-start}.inner-brief .content .button-group .btn[data-v-292408c8]{width:240px;height:50px;border-radius:25px;box-shadow:0 0 25px 0 rgba(255,39,65,0.1);line-height:50px;text-align:center;background:#fff;color:#ff2741;font-size:22px;font-weight:500;z-index:5;margin-left:20px}.inner-brief .content .button-group .btn[data-v-292408c8]:first-child{margin-left:0}
.inner-enter .inner-flow[data-v-3a578c74]{position:relative;width:1080px;margin:0 auto;display:flex;flex-direction:row;justify-content:center;align-items:flex-start}.inner-enter .inner-flow .list[data-v-3a578c74]{width:320px;height:240px;text-align:center;background:#fff;color:#2c2c2c;font-size:20px;font-weight:500;margin:0 20px;border-radius:8px;box-shadow:0 2px 20px 0 rgba(0,0,0,0.03)}.inner-enter .inner-flow .list .title-icon[data-v-3a578c74]{width:100px;height:37px;margin-top:15px;color:#fff;display:flex;align-items:center;background:linear-gradient(90deg,#ff5267 0%,#ff7d8d 100%);border-radius:0 100px 100px 0;padding:5px 15px 5px 10px;font-size:18px}.inner-enter .inner-flow .list .title[data-v-3a578c74]{margin:25px 0 0 0}.inner-enter .inner-flow .list .content[data-v-3a578c74]{font-size:16px;line-height:1.5;color:#747474;font-weight:normal;margin:18px 0 0 0}.inner-enter .inner-flow .list .pra-one[data-v-3a578c74],.inner-enter .inner-flow .list .pra-two[data-v-3a578c74]{margin:5px 0}.inner-enter .inner-flow .list .link[data-v-3a578c74]{color:#5b92e1;font-weight:500;cursor:pointer}
.business-page .container .brief-cards-wrapper[data-v-3bffa7bc]{background:#fff;display:flex;flex-direction:column;justify-content:flex-start;align-items:center;padding-bottom:100px}.business-page .container .brief-cards-wrapper .title[data-v-3bffa7bc]{color:#333;font-size:25px;margin-bottom:10px}.business-page .container .brief-cards-wrapper .subtitle[data-v-3bffa7bc]{color:#999;font-size:13px;margin:0 0 48px 0}.business-page .container .brief-cards-wrapper .subtitle .subtitle-link[data-v-3bffa7bc]{text-decoration:none;margin-left:16px;color:#5b92e1;line-height:13px;position:relative;cursor:pointer}.business-page .container .brief-cards-wrapper .subtitle .subtitle-link[data-v-3bffa7bc]:after{content:'';position:absolute;bottom:0;left:0;width:100%;height:1px;background-color:#5b92e1}.business-page .container .process-cards-wrapper[data-v-3bffa7bc]{background:#f7f7f7;display:flex;flex-direction:column;justify-content:flex-start;align-items:center;padding-top:50px;padding-bottom:100px}.business-page .container .process-cards-wrapper .title[data-v-3bffa7bc]{color:#333;font-size:25px;margin-bottom:10px}.business-page .container .process-cards-wrapper .subtitle[data-v-3bffa7bc]{color:#999;font-size:13px;margin:0 0 48px 0}.business-page .container .inner-enter[data-v-3bffa7bc]{background:#f7f7f7;height:508px;text-align:center;padding:60px 0 0 0}.business-page .container .inner-enter h2[data-v-3bffa7bc]{font-size:25px;font-weight:500;color:$BLACK;margin:0 0 10px 0}.business-page .container .inner-enter h5[data-v-3bffa7bc]{font-size:13px;color:#999;font-weight:normal;margin:0 0 50px 0}.business-page .container .inner-enter .inner-flow[data-v-3bffa7bc]{position:relative;width:1080px;margin:0 auto}.business-page .container .inner-enter .inner-flow .list[data-v-3bffa7bc]{width:320px;height:240px;text-align:center;background:#fff;color:#2c2c2c;font-size:20px;font-weight:500;float:left;margin:0 20px;border-radius:8px;box-shadow:0 2px 20px 0 rgba(0,0,0,0.03)}.business-page .container .inner-enter .inner-flow .list .title[data-v-3bffa7bc]{margin:25px 0 0 0}.business-page .container .inner-enter .inner-flow .list .icon[data-v-3bffa7bc]{width:96px;height:37px;display:block;margin-top:15px}.business-page .container .inner-enter .inner-flow .list .content[data-v-3bffa7bc]{font-size:16px;line-height:1.5;color:#747474;font-weight:normal;margin:18px 0 0 0}.business-page .container .inner-enter .inner-flow .list .pra-one[data-v-3bffa7bc],.business-page .container .inner-enter .inner-flow .list .pra-two[data-v-3bffa7bc]{margin:5px 0}.business-page .container .inner-enter .inner-flow .list .maomap[data-v-3bffa7bc]{color:#5b92e1;font-weight:500;cursor:pointer}.business-page .container .inner-detail-wrapper[data-v-3bffa7bc]{width:100%;background:#fff}.business-page .container .inner-detail-wrapper .inner-detail[data-v-3bffa7bc]{margin:0 auto;padding-bottom:55px;width:1030px}.business-page .container .inner-detail-wrapper .inner-detail h4[data-v-3bffa7bc]{text-align:center;font-size:25px;margin:0;padding-top:55px}.business-page .container .inner-detail-wrapper .inner-detail .top-topic[data-v-3bffa7bc]{margin:50px 0 0 0;overflow:hidden}.business-page .container .inner-detail-wrapper .inner-detail .top-topic .inner[data-v-3bffa7bc]{width:200px;height:42px;line-height:42px;border-radius:31px;border:1px solid #ff5267;float:left;cursor:pointer;text-align:center;color:#ff5267;font-weight:500}.business-page .container .inner-detail-wrapper .inner-detail .top-topic .inner[data-v-3bffa7bc]:first-child{margin:0 40px 0 295px}.business-page .container .inner-detail-wrapper .inner-detail .top-topic .inner.select[data-v-3bffa7bc]{background:#ff5267;color:#fff}.business-page .container .inner-detail-wrapper .inner-detail .middle-topic[data-v-3bffa7bc]{position:relative}.business-page .container .inner-detail-wrapper .inner-detail .middle-topic .inner[data-v-3bffa7bc]{overflow:hidden;margin:60px 0 0 0}.business-page .container .inner-detail-wrapper .inner-detail .middle-topic .inner h4[data-v-3bffa7bc]{float:left;width:150px;font-size:20px;font-weight:500;line-height:1.25;text-align:left;color:#2c2c2c;margin:0 40px 0 0;padding:0}.business-page .container .inner-detail-wrapper .inner-detail .middle-topic .inner ul[data-v-3bffa7bc]{float:left;margin:0;width:680px;font-size:18px;line-height:1.6}.business-page .container .inner-detail-wrapper .inner-detail .middle-topic .inner ul .main:first-child .topadd[data-v-3bffa7bc]{margin:0 0 8px -28px}.business-page .container .inner-detail-wrapper .inner-detail .middle-topic .inner ul .main .rightadd[data-v-3bffa7bc]{margin:0 0 0 0}.business-page .container .inner-detail-wrapper .inner-detail .middle-topic .inner ul .main .topadd[data-v-3bffa7bc]{margin:32px 0 8px -28px}.business-page .container .inner-detail-wrapper .inner-detail .middle-topic .inner ul .main .example[data-v-3bffa7bc],.business-page .container .inner-detail-wrapper .inner-detail .middle-topic .inner ul .main .letter[data-v-3bffa7bc]{color:#5b9Line truncated
.news-list[data-v-3c29a945]{width:940px}.news-list .news-item[data-v-3c29a945]{font-size:14px;line-height:16px;color:#333;margin:0 0 40px 0;display:flex;flex-direction:row;justify-content:space-between;align-items:center}.news-list .news-item.hoverable[data-v-3c29a945]{cursor:pointer}.news-list .news-item.hoverable[data-v-3c29a945]:hover{color:#ff2442}.news-list .news-item .date-press[data-v-3c29a945]{display:flex;flex-direction:row;justify-content:flex-end;align-items:center}.news-list .news-item .date-press .press[data-v-3c29a945]{margin-right:50px;text-align:right}.news-list .news-item .date-press .date[data-v-3c29a945]{width:75px;font-family:Monospaced;text-align:right}.news-list .more-item[data-v-3c29a945]{margin:0;display:flex;flex-direction:row;justify-content:flex-end;align-items:center}.news-list .more-item .more[data-v-3c29a945]{color:#ff2442;font-size:16px;line-height:22px;cursor:pointer}.news-list .more-item .more .right-icon[data-v-3c29a945]{margin-left:16px}
.left-content-window[data-v-7454303b]{width:264px;height:290px;position:relative;padding:0;margin:0}.left-content-window .left-content-wrapper[data-v-7454303b]{overflow:hidden;max-width:100%;height:290px;margin:0}.left-content-window .left-content-wrapper .left-content-container[data-v-7454303b]{position:relative;width:5000px;height:290px;padding:0;margin:0}.left-content-window .left-content-wrapper .left-content-container .left-content[data-v-7454303b]{float:left;position:relative;transform:translateX(-264px)}.middle-window[data-v-7454303b]{box-sizing:border-box;width:464px;height:260px;position:relative}.middle-window .middle-wrapper[data-v-7454303b]{overflow:hidden;max-width:100%;height:260px;margin:0}.middle-window .middle-wrapper .middle-container[data-v-7454303b]{position:relative;width:5000px;height:260px;padding:0;margin:0}.middle-window .middle-wrapper .middle-container .middle[data-v-7454303b]{float:left;position:relative;transform:translateX(-464px)}.middle-window .play-button[data-v-7454303b]{display:inline-block;position:absolute;left:200px;top:98px;width:64px;height:64px;cursor:pointer;border-radius:50%;overflow:hidden;background-image:url("//ci.xiaohongshu.com/7e7b7932-92e7-4c41-9a53-ce76a06f8ecf");background-repeat:no-repeat;background-size:cover}.right-window[data-v-7454303b]{width:203px;height:300px;position:relative;margin-left:14px}.right-window .right-wrapper[data-v-7454303b]{overflow:hidden;max-width:100%;height:300px;margin:0}.right-window .right-wrapper .right-container[data-v-7454303b]{position:relative;width:5000px;padding:0;margin:0}.right-window .right-wrapper .right-container .right[data-v-7454303b]{float:left;position:relative;transform:translateX(-406px)}.right-window .sub-play-button[data-v-7454303b]{position:absolute;left:88px;bottom:53px;width:26px;height:26px;border-radius:50%;cursor:pointer;background-image:url("//ci.xiaohongshu.com/7e7b7932-92e7-4c41-9a53-ce76a06f8ecf");background-repeat:no-repeat;background-size:cover;overflow:hidden}.animate[data-v-7454303b]{transition-duration:.5s;transition-property:transform;transition-timing-function:ease-out}.fairy-tale-container[data-v-7454303b]{width:1013px;display:flex;flex-direction:row;justify-content:center;align-items:flex-end}.fairy-tale-container .left[data-v-7454303b]{width:332px;height:415px;padding:40px 34px;background-image:url("//ci.xiaohongshu.com/3bc5db57-f38a-4aad-a297-01a29e314993");background-repeat:no-repeat;background-size:cover;display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;color:#fff}.fairy-tale-container .left .left-content[data-v-7454303b]{width:264px;height:290px;overflow:hidden;display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start}.fairy-tale-container .left .left-content .header[data-v-7454303b]{font-size:14px;line-height:20px}.fairy-tale-container .left .left-content .title[data-v-7454303b]{width:264px;margin-top:15px;margin-bottom:35px;font-size:26px;line-height:39px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.fairy-tale-container .left .left-content .content[data-v-7454303b]{width:264px;font-size:14px;line-height:21px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:6;overflow:hidden}.fairy-tale-container .left .footer[data-v-7454303b]{width:172px;font-size:14px;line-height:16px;display:flex;flex-direction:row;justify-content:space-between;align-items:center}.fairy-tale-container .left .footer .arrow-left[data-v-7454303b]{width:16px;height:16px;cursor:pointer;margin-right:44px}.fairy-tale-container .left .footer .arrow-right[data-v-7454303b]{width:16px;height:16px;cursor:pointer;margin-left:44px;transform:rotate(180deg)}.fairy-tale-container .middle[data-v-7454303b]{width:464px;height:260px;display:flex;flex-direction:column;justify-content:center;align-items:center}.fairy-tale-container .middle .video-wrapper[data-v-7454303b]{position:relative;width:464px;height:260px;overflow:hidden}.fairy-tale-container .middle .video-wrapper .video-tag[data-v-7454303b]{width:464px;min-height:100%;height:auto;top:50%;left:50%;transform:translate(-50%,-50%);position:absolute}.fairy-tale-container .middle .video-wrapper .video-mask[data-v-7454303b]{width:100%;height:100%;position:absolute;top:0;left:0;background-repeat:no-repeat;background-size:cover}.fairy-tale-container .right[data-v-7454303b]{width:203px;height:300px;display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-start}.fairy-tale-container .right .header[data-v-7454303b]{font-size:14px;line-height:16px;color:#333;margin-bottom:20px;font-weight:500}.fairy-tale-container .right .title[data-v-7454303b]{font-size:14px;line-height:20px;font-weight:500;color:#333;margin-bottom:14px}.fairy-tale-container .right .sub-video[data-v-7454303b]{width:203px;height:132px;background-repeat:no-repeat;background-size:cover;cursor:pointer}
.oneBanner[data-v-ab6d5b1c]{width:100%;height:500px;position:relative;margin:0 auto 0 auto;background-size:cover;background-position:center center;background-repeat:no-repeat;display:flex;flex-direction:column;justify-content:center;align-items:center}.oneBanner .title[data-v-ab6d5b1c]{max-width:100%;font-size:48px;line-height:67px;font-weight:bold;font-family:"PingFang SC",Helvetica,Arial,sans-serif;color:#fff;position:relative}.oneBanner .line[data-v-ab6d5b1c]{max-width:100%;border-radius:1px;margin:16px 0 25px 0;display:inline-block;width:204px;height:1px;background-color:#fff}.oneBanner .content[data-v-ab6d5b1c]{max-width:100%;z-index:1;font-size:24px;font-family:"PingFang SC",Helvetica,Arial,sans-serif;line-height:33px;font-weight:normal;color:#fff}.oneBanner .inner[data-v-ab6d5b1c]{max-width:100%;position:absolute;top:0;left:0;content:'';width:100%;height:100%}
.content[data-v-6c5c12c6]{background-color:#fff;padding-top:100px}.activity[data-v-6c5c12c6]{display:flex;flex-direction:column;justify-content:center;align-items:center}.trophy[data-v-6c5c12c6]{display:flex;margin-top:100px;flex-direction:column;justify-content:center;align-items:center}.report[data-v-6c5c12c6]{display:flex;margin-top:100px;flex-direction:column;justify-content:center;align-items:center}.title[data-v-6c5c12c6]{margin-bottom:50px;font-size:36px;line-height:50px;font-weight:bold;color:#333}.fairyTale[data-v-6c5c12c6]{margin-top:110px;padding-bottom:180px;display:flex;flex-direction:column;justify-content:space-between;align-items:center;background-color:#fbfbfb}.fairyTale .title[data-v-6c5c12c6]{margin-top:100px}.fairyTale .musicLife[data-v-6c5c12c6]{display:flex;flex-direction:row;justify-content:center}.fairyTale .musicLife .left[data-v-6c5c12c6]{flow-grow:1;flex-shrink:1;width:610px;height:540px;background:#fff url("//ci.xiaohongshu.com/4e3a8d55-e26a-4b6b-8342-bb56da1b24f5") no-repeat center center;background-size:contain}.fairyTale .musicLife .left .leftStories[data-v-6c5c12c6]{margin-left:40%;margin-top:30%}.fairyTale .musicLife .right[data-v-6c5c12c6]{flow-grow:1;flex-shrink:1;width:830px;height:540px;background:#fff url("//ci.xiaohongshu.com/c9d4f647-1309-4aee-b84e-c1958aa0826b") no-repeat center center;background-size:contain;display:flex;justify-content:center;align-items:center}.fairyTale .musicLife .right .button[data-v-6c5c12c6]{display:inline-block;width:75px;height:75px;cursor:pointer}
.news-list[data-v-fb2557ae]{width:940px}.list[data-v-fb2557ae]{display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start}.news-item[data-v-fb2557ae]{width:940px;font-size:14px;line-height:16px;color:#555;margin:0 0 30px 0;display:flex;flex-direction:row;justify-content:space-between;align-items:center}.news-item.hoverable[data-v-fb2557ae]{cursor:pointer}.news-item.hoverable[data-v-fb2557ae]:hover{color:#ff2442}.news-item .title[data-v-fb2557ae]{font-size:14px;line-height:16px}.news-item .date-press[data-v-fb2557ae]{display:flex;flex-direction:row;justify-content:flex-end;align-items:center}.news-item .date-press .press[data-v-fb2557ae]{margin-right:50px;text-align:right}.news-item .date-press .date[data-v-fb2557ae]{width:75px;font-family:Monospaced;text-align:right}
.container[data-v-3584c8de]{padding-bottom:100px;background-color:#fff}.reports-wrapper[data-v-3584c8de]{display:flex;flex-direction:column;align-items:center}.reports-wrapper .title[data-v-3584c8de]{font-size:36px;color:#000;margin:100px 0 50px 0}
.container[data-v-9b6e729e]{padding-bottom:100px;background-color:#fff}.activities-wrapper[data-v-9b6e729e]{display:flex;flex-direction:column;align-items:center}.activities-wrapper .title[data-v-9b6e729e]{font-size:36px;color:#000;margin:100px 0 50px 0}
.passage-wrapper[data-v-62961898]{background-color:rgba(0,0,0,0.03);margin-top:106px;width:100%}.passage-wrapper .passage[data-v-62961898]{width:940px;padding:50px 100px;margin:50px auto;border-radius:8px;background-color:#fff;display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start}.passage-wrapper .passage .title[data-v-62961898]{margin:0 0 0 0;font-size:32px;line-height:45px;color:#333}.passage-wrapper .passage .subtitle[data-v-62961898]{margin:42px 0 0 0;display:flex;flex-direction:row;justify-content:flex-start;align-items:center}.passage-wrapper .passage .subtitle .date[data-v-62961898]{font-size:16px;line-height:22px;color:#666}.passage-wrapper .passage .subtitle .line[data-v-62961898]{margin:0 48px 0 36px;display:inline-block;height:20px;width:1px;background-color:#4d4d4f}.passage-wrapper .passage .subtitle .viewSum[data-v-62961898]{font-size:16px;line-height:22px;color:#666}.passage-wrapper .passage .content-wrapper[data-v-62961898]{margin:26px 0 0 0;width:740px;font-size:16px;line-height:32px;color:#333}.passage-wrapper .passage .content-wrapper .content[data-v-62961898]{width:740px;display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;position:relative}.passage-wrapper .passage .content-wrapper .content .paragraph-subtitle[data-v-62961898]{margin:30px 0 0 0;width:100%;text-align:justify;font-weight:bold}.passage-wrapper .passage .content-wrapper .content .paragraph[data-v-62961898]{margin:15px auto;width:100%;text-indent:32px;text-align:justify}.passage-wrapper .passage .content-wrapper .content .inline-picture[data-v-62961898]{width:70%;margin:20px auto}
.container[data-v-141c67e0]{padding-bottom:100px;background-color:#fff}.trophy-wrapper[data-v-141c67e0]{display:flex;flex-direction:column;align-items:center}.trophy-wrapper .title[data-v-141c67e0]{font-size:36px;color:#000;margin:100px 0 50px 0}
.qrcode-group[data-v-78451980]{display:flex;flex-direction:row;justify-content:center;align-items:center}.qrcode-group .qrcode[data-v-78451980]{width:180px;height:180px;margin-right:10px;display:flex;flex-direction:column;justify-content:flex-start;align-items:center}.qrcode-group .qrcode.hoverable[data-v-78451980]{cursor:pointer}.qrcode-group .qrcode .image[data-v-78451980]{margin-top:31px;width:90px;height:90px}.qrcode-group .qrcode .description[data-v-78451980]{margin-top:20px;color:#555;font-size:16px;line-height:18px;font-weight:400}
div[data-v-159c9712]{display:flex;flex-direction:row;justify-content:center}div .item[data-v-159c9712]{display:flex;flex-direction:row;justify-content:center;align-items:center;height:124px}div .item .detail-wrapper[data-v-159c9712]{margin:0 50px;height:124px;display:flex;flex-direction:column;justify-content:space-between;align-items:center}div .item .detail-wrapper .image-wrapper .image[data-v-159c9712]{width:36px;height:auto;margin:auto}div .item .detail-wrapper .title[data-v-159c9712]{font-size:20px;line-height:24px;color:#333;font-weight:bold}div .item .detail-wrapper .detail[data-v-159c9712]{font-size:16px;line-height:16px;color:#666}div .item .line[data-v-159c9712]{width:1px;height:100px;background-color:#ccc}
.container[data-v-d251a668]{display:flex;flex-direction:row;justify-content:center;align-items:center}.container .card-wrapper[data-v-d251a668]{width:240px;height:350px}.container .card-wrapper .img-card[data-v-d251a668]{position:relative;width:100%;height:100%;overflow:hidden}.container .card-wrapper:hover .card-front[data-v-d251a668]{opacity:0}.container .card-wrapper:hover .card-back[data-v-d251a668]{opacity:1}.container .card-wrapper:hover .card-back .mask-back[data-v-d251a668]{transform:scale(1)}.container .card-wrapper .card-front[data-v-d251a668],.container .card-wrapper .card-back[data-v-d251a668]{cursor:pointer;position:absolute;width:100%;height:100%}.container .card-wrapper .card-front[data-v-d251a668]{transition:opacity .3s ease 0s;background-repeat:no-repeat;background-size:100%}.container .card-wrapper .card-front .mask-front[data-v-d251a668]{position:absolute;width:100%;height:100%;background-color:rgba(255,255,255,0.6);opacity:.8;display:flex;flex-direction:column;justify-content:center;align-items:center}.container .card-wrapper .card-front .mask-front .index[data-v-d251a668]{margin-bottom:20px;color:#000;font-size:16px;line-height:24px}.container .card-wrapper .card-front .mask-front .tab[data-v-d251a668]{color:#333;font-size:24px;line-height:30px}.container .card-wrapper .card-back[data-v-d251a668]{opacity:0;transition:opacity .6s ease 0s}.container .card-wrapper .card-back .mask-back[data-v-d251a668]{transform:scale(1.3);transition:transform .8s ease 0s;position:absolute;width:100%;height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;background-color:#ff2442;color:#fff}.container .card-wrapper .card-back .mask-back .index[data-v-d251a668]{font-size:16px;line-height:24px}.container .card-wrapper .card-back .mask-back .tab[data-v-d251a668]{margin-top:16px;font-size:24px;line-height:30px}.container .card-wrapper .card-back .mask-back .line[data-v-d251a668]{margin-top:20px;margin-bottom:20px;display:inline-block;width:49px;height:1px;border-radius:1px;background-color:#fff;opacity:.5}.container .card-wrapper .card-back .mask-back .description[data-v-d251a668]{width:200px;font-size:14px;line-height:25px}.container .card-wrapper .card-back .mask-back .description.english[data-v-d251a668]{line-height:21px;word-wrap:break-word;-webkit-hyphens:auto;hyphens:auto}
.hoverable[data-v-8b722c6e]{cursor:pointer}.event-wrapper[data-v-8b722c6e]{width:1000px;display:flex;flex-direction:column;justify-content:flex-start;align-items:center}.selector-wrapper[data-v-8b722c6e]{width:1000px;display:flex;margin-bottom:50px;flex-direction:row;justify-content:center;align-items:center;color:#666;font-size:16px;font-weight:16px;line-height:76px;text-align:center;cursor:pointer}.selector-wrapper .arrow[data-v-8b722c6e]{width:70px;height:76px;border:1px solid #e6e6e6;color:#000}.selector-wrapper .selector[data-v-8b722c6e]{width:216px;height:76px;border:1px solid #e6e6e6;border-right:none}.selector-wrapper .selector[data-v-8b722c6e]:first-child{border-left:none}.selector-wrapper .selector[data-v-8b722c6e]:last-child{border-right:1px solid #e6e6e6}.selector-wrapper .selector.current[data-v-8b722c6e]{color:#ff2741;background-color:#f4f4f4}.breaking-news[data-v-8b722c6e]{width:864px;padding-left:100px;padding-right:50px;display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start}.breaking-news .year[data-v-8b722c6e]{font-size:20px;line-height:28px;color:#ff2741;font-weight:normal;margin:0 0 30px 70px}.item-wrapper[data-v-8b722c6e]{display:flex;width:600px;flex-direction:column;justify-content:flex-start;align-items:flex-start}.each-item[data-v-8b722c6e]{color:#555;display:flex;flex-direction:row;justify-content:center;align-items:flex-start;margin-bottom:4px}.each-item .month[data-v-8b722c6e]{display:inline-block;text-align:right;width:100px;margin-right:18px;font-size:16px;line-height:24px;font-weight:500;color:#000}.each-item .month.followers[data-v-8b722c6e]{color:#fff}.each-item .progress[data-v-8b722c6e]{display:inline-block}.each-item .progress .dot[data-v-8b722c6e]{display:block;width:4px;height:4px;border-radius:50%;background-color:#ccc;margin:10px auto 0 auto}.each-item .progress .line[data-v-8b722c6e]{display:block;width:1px;height:45px;background-color:#eee;margin:10px auto 0 auto}.each-item .content[data-v-8b722c6e]{display:inline-block;margin-left:30px;width:628px;white-space:pre-wrap;overflow:hidden;font-size:14px;line-height:24px;font-weight:normal}.each-item:last-child .line[data-v-8b722c6e]{background-color:#fff}.each-item:last-child.selected .process[data-v-8b722c6e]{background-color:#fff}.each-item.selected[data-v-8b722c6e]{color:#000}.each-item.selected .process[data-v-8b722c6e]{display:block;background-color:#ff2741;transition:width .8s ease;animation:time-8b722c6e 2s infinite}@keyframes time-8b722c6e{0%{height:0}100%{height:45px}}.each-item.selected .dot[data-v-8b722c6e]{background-color:#ff2741}.each-item.selected .content[data-v-8b722c6e]{color:#ff2442}
.office-list[data-v-1dbfe50c]{margin-bottom:50px;display:flex;flex-direction:row;justify-content:center;align-items:center}.office-list .office[data-v-1dbfe50c]{width:216px;height:76px;text-align:center;border:1px solid #e6e6e6;border-right:none;line-height:76px;color:#666;font-size:16px;background-color:#fff;cursor:pointer}.office-list .office[data-v-1dbfe50c]:last-child{border-right:1px solid #e6e6e6}.office-list .office.current[data-v-1dbfe50c],.office-list .office[data-v-1dbfe50c]:hover{color:#ff2441;background-color:#e6e6e6}.image-wrapper[data-v-1dbfe50c]{display:flex;flex-direction:row;justify-content:center;align-items:flex-start}.image-wrapper .image-list[data-v-1dbfe50c]{position:relative;width:320px;height:298px;display:flex;flex-direction:column;justify-content:center;align-items:center;background-repeat:no-repeat;background-size:cover}.image-wrapper .image-list .title[data-v-1dbfe50c]{z-index:1;font-size:26px;line-height:37px;font-weight:bold;font-family:"PingFang SC",Helvetica,Arial,sans-serif;color:#fff}.image-wrapper .image-list .content[data-v-1dbfe50c]{z-index:1;font-size:16px;font-family:"PingFang SC",Helvetica,Arial,sans-serif;line-height:24px;color:#fff;margin-top:21px}.image-wrapper .image-list .inner[data-v-1dbfe50c]{position:absolute;background-color:rgba(0,0,0,0.7);top:0;left:0;content:'';width:100%;height:100%}
.title[data-v-60dab234]{margin-bottom:50px;font-size:36px;line-height:50px;font-weight:bold;color:#000}.introduction[data-v-60dab234]{background-color:#fff;padding-top:96px;padding-bottom:75px;display:flex;flex-direction:column;justify-content:center;align-items:center}.introduction .description-wrapper[data-v-60dab234]{display:inline-block;vertical-align:top;width:960px;color:#555;font-weight:400;font-size:16px;line-height:24px;text-align:center;margin-bottom:50px}.introduction .description-wrapper.english[data-v-60dab234]{text-align:justify}.introduction .description-wrapper .description[data-v-60dab234]{text-align:justify;text-align-last:left;margin:0;padding:0;margin-top:24px}.introduction .description-wrapper .description[data-v-60dab234]:first-child{margin-top:0}.introduction .ambition-list[data-v-60dab234]{margin:44px auto 25px auto}.context[data-v-60dab234]{background-color:#fbfbfb;display:flex;flex-direction:column;justify-content:center;align-items:center;padding-top:100px;padding-bottom:100px}.context .detail-wrapper[data-v-60dab234]{margin-bottom:30px}.cooperation[data-v-60dab234]{background-color:#fbfbfb;display:flex;flex-direction:column;justify-content:center;align-items:center;padding-top:100px;padding-bottom:100px}.address[data-v-60dab234]{background-color:#fff;overflow:hidden;display:flex;flex-direction:row;justify-content:center;align-items:center}.address .address-container[data-v-60dab234]{width:1440px;position:relative;padding-top:100px;padding-bottom:100px;height:500px}.address .address-container .office-address-wrapper[data-v-60dab234]{width:960px;margin:0 auto}.address .address-container .office-address-wrapper .title[data-v-60dab234]{display:inline-block;line-height:39px;margin-bottom:53px}.address .address-container .office-address-wrapper.english .title[data-v-60dab234]{font-size:26px}.address .address-container .office-address-wrapper .office[data-v-60dab234]{margin-bottom:30px;text-align:left;font-size:16px;line-height:20px;color:#555}.address .address-container .office-address-wrapper .office .office-name[data-v-60dab234]{display:block;color:#000;font-weight:500;margin-bottom:10px}.address .address-container .office-address-wrapper .office .office-address[data-v-60dab234]{display:block;width:362px;line-height:20px}.address .address-container .map[data-v-60dab234]{position:absolute;right:0;top:0;padding:0;margin:0;width:780px;height:500px;background-size:contain;background-repeat:no-repeat}.address .address-container .map img[data-v-60dab234]{width:30px;height:30px;position:absolute;cursor:pointer}.address .address-container .map .shanghai[data-v-60dab234]{top:250px;right:355px}.address .address-container .map .beijing[data-v-60dab234]{top:100px;right:421px}.address .address-container .map .wuhan[data-v-60dab234]{top:250px;right:476px}.growth[data-v-60dab234]{padding:100px 0;background-color:#fff;display:flex;flex-direction:column;justify-content:center;align-items:center}.contact[data-v-60dab234]{padding-top:100px;padding-bottom:100px;text-align:center;background-color:#fff}.contact .title[data-v-60dab234]{display:inline-block;margin-bottom:50px}.title-wrapper[data-v-60dab234]{width:960px;margin:0 auto}.ceo-mail-box[data-v-60dab234]{padding:100px 0;background-color:#fbfbfb;display:flex;flex-direction:column;justify-content:flex-start;align-items:center;color:#333}.ceo-mail-box .title[data-v-60dab234]{display:inline-block;font-size:36px;line-height:39px;margin-bottom:50px}.ceo-mail-box .paragraphs-container[data-v-60dab234]{display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;position:relative}.ceo-mail-box .paragraphs-container[data-v-60dab234]:before{content:'';position:absolute;width:16px;height:14px;top:-10px;left:-19px;background-image:url("//ci.xiaohongshu.com/9122eb19-33ca-4a92-a56a-1cf7cbf6d6fc");background-size:contain}.ceo-mail-box .paragraphs-container .paragraph[data-v-60dab234]{width:1021px;margin-bottom:30px}.ceo-mail-box .paragraphs-container .paragraph[data-v-60dab234]:last-child{margin-bottom:0}.ceo-mail-box .paragraphs-container .paragraph .content[data-v-60dab234]{font-size:20px;line-height:30px;margin:0;padding:0}.ceo-mail-box .paragraphs-container .paragraph .list[data-v-60dab234]{margin:0;margin-top:15px;padding:0;list-style:none;color:#555}.ceo-mail-box .paragraphs-container .paragraph .list .list-item[data-v-60dab234]{width:1002px;font-size:16px;line-height:19px;margin:0 0 15px 19px;position:relative}.ceo-mail-box .paragraphs-container .paragraph .list .list-item[data-v-60dab234]:before{content:'';position:absolute;width:4px;height:4px;border-radius:4px;overflow:hidden;background-color:#ff2442;left:-7.5px;top:7.5px}.ceo-mail-box .paragraphs-container .paragraph .list .list-item[data-v-60dab234]:last-child{margin-bottom:0}.mails[data-v-60dab234]{width:960px;margin:0 auto;display:flex;flex-direction:row;flex-wrap:wrap;justify-content:flex-start;align-items:flex-start;margin-bottom:-30px}.mails .mail[data-v-60dab234]{width:2Line truncated
.outline[data-v-6e9c962e]{display:flex;flex-direction:column;justify-content:flex-start;align-items:center;padding-top:80px}.item-wrapper[data-v-6e9c962e]{width:940px;height:198px;display:flex;flex-direction:row;justify-content:flex-start;align-items:center;background-color:#fff;margin:0 0 58px 0;cursor:pointer}.item-wrapper .image-wrapper[data-v-6e9c962e]{height:100%}.item-wrapper .image-wrapper .image[data-v-6e9c962e]{width:310px;height:100%;object-fit:cover}.item-wrapper .item[data-v-6e9c962e]{margin:0 0 0 36px;padding-right:30px;height:189px;display:flex;flex-direction:column;justify-content:space-around;align-items:flex-start}.item-wrapper .item .title-wrapper[data-v-6e9c962e]{margin:10px 0 0 0;font-size:20px;color:#000}.item-wrapper .item .title-wrapper .title[data-v-6e9c962e]{font-size:24px;line-height:28px;margin:0}.item-wrapper .item .title-wrapper .title .tag[data-v-6e9c962e]{font-size:20px;line-height:28px;margin-left:-12px}.item-wrapper .item .content[data-v-6e9c962e]{color:#666;font-size:14px;line-height:24px;width:581px;height:48px;text-overflow:ellipsis;overflow:hidden}.item-wrapper .item .date[data-v-6e9c962e]{color:#999}.pagination[data-v-6e9c962e]{display:flex;flex-direction:row;justify-content:flex-end;align-items:center;width:940px;margin:12px 0 0 0}.pagination .page[data-v-6e9c962e]{display:inline-block;height:40px;margin-left:15px;background-color:#fff;border:1px solid #eee;border-radius:4px;font-size:14px;font-weight:400;line-height:40px;text-align:center;color:#000;cursor:pointer}.pagination .page[data-v-6e9c962e]:hover{border-color:#ff2741;color:#ff2741}.pagination .page.disabled[data-v-6e9c962e]{color:#999}.pagination .page.disabled[data-v-6e9c962e]:hover{border-color:#eee}.pagination .prev[data-v-6e9c962e]{width:76px}.pagination .pages[data-v-6e9c962e]{width:40px}.pagination .pages.current[data-v-6e9c962e]{background-color:#ff2741;color:#fff;border-color:#ff2741}.pagination .next[data-v-6e9c962e]{width:76px}
.container[data-v-2a9afa80]{background:#fff}.container .liability-wrapper[data-v-2a9afa80]{background-color:rgba(0,0,0,0.03);padding-bottom:50px;margin-top:106px}
.passage-wrapper[data-v-780e6e88]{background-color:rgba(0,0,0,0.03);margin-top:106px;width:100%}.passage-wrapper .passage[data-v-780e6e88]{width:940px;padding:50px 100px;margin:50px auto 50px auto;border-radius:8px;background-color:#fff;display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start}.passage-wrapper .passage .title[data-v-780e6e88]{margin:0 0 0 0;font-size:32px;line-height:45px;color:#333}.passage-wrapper .passage .subtitle[data-v-780e6e88]{margin:42px 0 0 0;display:flex;flex-direction:row;justify-content:flex-start;align-items:center}.passage-wrapper .passage .subtitle .date[data-v-780e6e88]{font-size:16px;line-height:22px;color:#666}.passage-wrapper .passage .subtitle .line[data-v-780e6e88]{margin:0 48px 0 36px;display:inline-block;height:20px;width:1px;background-color:#4d4d4f}.passage-wrapper .passage .subtitle .viewSum[data-v-780e6e88]{font-size:16px;line-height:22px;color:#666}.passage-wrapper .passage .content-wrapper[data-v-780e6e88]{margin:26px 0 0 0;width:740px;font-size:16px;line-height:32px;color:#333}.passage-wrapper .passage .content-wrapper .content[data-v-780e6e88]{width:740px;display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;position:relative}.passage-wrapper .passage .content-wrapper .content .paragraph-html[data-v-780e6e88],.passage-wrapper .passage .content-wrapper .content .paragraph[data-v-780e6e88],.passage-wrapper .passage .content-wrapper .content .clickable-url[data-v-780e6e88]{margin:15px auto;width:100%;text-indent:32px;text-align:justify}.passage-wrapper .passage .content-wrapper .content .paragraph-html[data-v-780e6e88]{text-indent:0;margin-left:32px}.passage-wrapper .passage .content-wrapper .content .inline-picture[data-v-780e6e88]{width:70%;margin:20px auto}.passage-wrapper .passage .content-wrapper .content .clickable-url[data-v-780e6e88]{cursor:pointer;margin-top:0}.passage-wrapper .passage .content-wrapper .content .clickable-url[data-v-780e6e88]:hover{color:#ff2442}
.test em{font-style:normal;color:#333;font-weight:bold}
.rating-item[data-v-74233891]{background:#fbfbfb}.rating-item .inner[data-v-74233891]{width:960px;margin:50px auto 0 auto;overflow:hidden;position:relative}.rating-item .inner .right-content[data-v-74233891]{width:710px;float:left;margin-left:100px;background:#fff;margin-bottom:50px;padding:0 20px 20px 20px}.rating-item .inner .right-content .title[data-v-74233891]{font-size:20px;font-weight:600;margin:30px auto 0 auto;text-align:center;color:#000;border-bottom:1px dashed #eee;padding-bottom:30px}.rating-item .inner .right-content .content[data-v-74233891]{padding-top:5px;margin:0 15px}.rating-item .inner .right-content .content .test[data-v-74233891]{margin:10px 0 0 0;line-height:28px}.rating-item .inner .right-content .content .test .short-nav[data-v-74233891]{font-size:14px;font-weight:600;color:#000;margin:0}.rating-item .inner .right-content .content .test .add[data-v-74233891]{display:block}.rating-item .inner .right-content .content .test .num[data-v-74233891]{margin-right:10px}.rating-item .inner .right-content .content .test .add[data-v-74233891]{display:block}
</style></head><body><div style="display: none;"><svg><defs><clipPath id="a"><rect width="72" height="72" rx="36"/></clipPath><clipPath id="a"><rect width="150" height="150" x=".5" rx="75"/></clipPath><clipPath id="a"><path d="M0 0h24v24H0z"/></clipPath><clipPath id="a"><path fill="#fff" d="M3 3h14v14H3z"/></clipPath></defs><symbol id="creator" viewBox="0 0 24 24"><path fill="currentColor" d="M16 4.8A4.2 4.2 0 0 1 20.2 9v6a4.2 4.2 0 0 1-4.2 4.2H8A4.2 4.2 0 0 1 3.8 15V9A4.2 4.2 0 0 1 8 4.8zM8 3a6 6 0 0 0-6 6v6a6 6 0 0 0 6 6h8a6 6 0 0 0 6-6V9a6 6 0 0 0-6-6z"/><path fill="currentColor" d="M11.1 15a.9.9 0 1 0 1.8 0v-2.1H15a.9.9 0 1 0 0-1.8h-2.1V9a.9.9 0 1 0-1.8 0v2.1H9a.9.9 0 0 0 0 1.8h2.1z"/></symbol><symbol id="tab_btn_right" viewBox="0 0 20 20"><path d="M6.91 2.744a.833.833 0 0 1 1.18 0l6.666 6.667a.833.833 0 0 1 0 1.178l-6.667 6.667a.833.833 0 1 1-1.178-1.179L12.988 10 6.911 3.923a.833.833 0 0 1 0-1.179"/></symbol><symbol id="close" viewBox="0 0 24 24"><path d="M19.23 4.772a.92.92 0 0 1 0 1.301l-5.928 5.928 5.926 5.925a.92.92 0 0 1-1.302 1.302l-5.925-5.926-5.928 5.929a.92.92 0 0 1-1.214.076l-.087-.076a.92.92 0 0 1 0-1.302l5.928-5.928-5.93-5.93a.92.92 0 0 1 1.3-1.301l5.931 5.93 5.928-5.928a.92.92 0 0 1 1.215-.077z"/></symbol><symbol id="scan_qr" viewBox="0 0 20 21"><path fill-opacity=".8" d="M2.5 5.042C2.5 3.914 3.414 3 4.542 3h2.583c1.128 0 2.042.914 2.042 2.042v2.583a2.04 2.04 0 0 1-2.042 2.042H4.542A2.04 2.04 0 0 1 2.5 7.625zM4.542 4.5c-.3 0-.542.243-.542.542v2.583c0 .3.243.542.542.542h2.583c.3 0 .542-.243.542-.542V5.042c0-.3-.243-.542-.542-.542zM10.833 5.042c0-1.128.914-2.042 2.042-2.042h2.583c1.128 0 2.042.914 2.042 2.042v2.583a2.04 2.04 0 0 1-2.042 2.042h-2.583a2.04 2.04 0 0 1-2.042-2.042zm2.042-.542c-.3 0-.542.243-.542.542v2.583c0 .3.243.542.542.542h2.583c.3 0 .542-.243.542-.542V5.042c0-.3-.242-.542-.542-.542zM2.5 13.375c0-1.128.914-2.042 2.042-2.042h2.583c1.128 0 2.042.914 2.042 2.042v2.583A2.04 2.04 0 0 1 7.125 18H4.542A2.04 2.04 0 0 1 2.5 15.958zm2.042-.542c-.3 0-.542.243-.542.542v2.583c0 .3.243.542.542.542h2.583c.3 0 .542-.242.542-.542v-2.583c0-.3-.243-.542-.542-.542zM12.5 12.167a.833.833 0 1 1-1.667 0 .833.833 0 0 1 1.667 0M15.833 12.167a.833.833 0 1 1-1.666 0 .833.833 0 0 1 1.666 0M14.167 13.833a.833.833 0 1 1-1.667 0 .833.833 0 0 1 1.667 0M17.5 13.833a.833.833 0 1 1-1.667 0 .833.833 0 0 1 1.667 0M12.5 15.5a.833.833 0 1 1-1.667 0 .833.833 0 0 1 1.667 0M14.167 17.167a.833.833 0 1 1-1.667 0 .833.833 0 0 1 1.667 0M15.833 15.5a.833.833 0 1 1-1.666 0 .833.833 0 0 1 1.666 0M17.5 17.167a.833.833 0 1 1-1.667 0 .833.833 0 0 1 1.667 0"/></symbol><symbol id="change" viewBox="0 0 14 14"><path d="M7 1.682a5.318 5.318 0 0 0-3.826 9.012l.311-.31a.328.328 0 0 1 .56.232v1.505a.33.33 0 0 1-.328.329H2.212a.328.328 0 0 1-.232-.56l.359-.36a6.5 6.5 0 0 1 7.19-10.52.59.59 0 1 1-.46 1.089A5.3 5.3 0 0 0 7 1.682M11.303 4.536l.263-.264a5.318 5.318 0 0 1-5.655 7.935.59.59 0 0 0-.24 1.157q.645.135 1.33.136a6.5 6.5 0 0 0 5.422-10.085l.385-.385a.328.328 0 0 0-.232-.56h-1.505a.33.33 0 0 0-.328.328v1.505c0 .293.353.44.56.233"/></symbol><symbol id="IOS" viewBox="0 0 24 28"><path fill="#333" fill-rule="nonzero" d="M20.54 18.423q1.152 1.633 2.644 2.112-.647 2-2.054 4.17-2.166 3.267-4.277 3.267-.787 0-2.335-.535-1.434-.536-2.504-.536-1.069 0-2.363.564Q8.3 28 7.428 28q-2.532 0-4.98-4.31Q0 19.437 0 15.324q0-3.802 1.857-6.225Q3.77 6.676 6.584 6.676q.619 0 1.378.155a6 6 0 0 1 1.576.577q.873.48 1.435.662.563.184.872.184.367 0 1.126-.17a5.2 5.2 0 0 0 1.519-.62 11.4 11.4 0 0 1 1.407-.675q.59-.226 1.21-.226 1.969 0 3.545 1.07.844.564 1.716 1.663-1.294 1.125-1.885 1.972-1.098 1.577-1.097 3.436 0 2.056 1.153 3.719M14.883 5.268q-.985.93-1.8 1.21a6 6 0 0 1-.718.156q-.436.07-1 .127.03-2.48 1.295-4.282Q13.927.676 16.825 0q.057.283.085.394v.31q0 1.014-.479 2.282-.506 1.24-1.547 2.282"/></symbol><symbol id="comment" viewBox="0 0 16 16"><path fill="currentColor" fill-opacity=".8" d="M3.182 10.985c.175.283.221.633.113.958l-.535 1.606c.185-.036.393-.075.605-.114.308-.056.63-.113.904-.156.242-.037.535-.08.73-.08.285 0 .607.088.814.144l.054.014c.496.133 1.162.31 2.133.31A5.676 5.676 0 0 0 13.666 8a5.667 5.667 0 1 0-10.484 2.985m-.937 3.682a.667.667 0 0 1-.62-.878l.721-2.162a.14.14 0 0 0-.013-.114A6.667 6.667 0 1 1 14.667 8c0 3.682-3 6.667-6.667 6.667-1.105 0-1.873-.205-2.391-.344-.264-.07-.463-.123-.61-.123-.414 0-2.552.429-2.73.464zm8.855-6.5a.833.833 0 1 0-1.667 0 .833.833 0 0 0 1.667 0M5.733 9a.833.833 0 1 1 0-1.667.833.833 0 0 1 0 1.667"/></symbol><symbol id="ic_arrow_left" viewBox="0 0 20 20"><path fill="currentColor" d="M1.268 9.354a.914.914 0 0 0 0 1.292l5.586 5.586a.914.914 0 0 0 1.292-1.292l-4.025-4.026h13.965a.914.914 0 0 0 0-1.828H4.12L8.146 5.06a.914.914 0 0 0-1.292-1.292z"/></symbol><symbol id="qq_f" viewBox="0 0 20 20"><path fill="currentColor" fill-opacity=".8" d="M5.142 17.2a.57.57 0 0 1-.22-.443c0-.471.461-.799.924-1.009a4.1 4.1 0 0 1-.835-1.428c-.374.437-.745.707-1.012.707-.417 0-.666-.435-.666-1.165 0-1.255.699-3.064 1.284-4.36.203-Line truncated
+24
View File
@@ -0,0 +1,24 @@
// @ts-check
// https://bun.sh/docs/bundler
// @ts-ignore
import pkg from './package.json';
// import { resolvePath as rp } from '@kevisual/use-config/env';
import path from 'path';
const rp = (resolvePath) => {
return path.resolve(process.cwd(), resolvePath);
};
// bun run src/index.ts --
await Bun.build({
target: 'node',
format: 'esm',
entrypoints: [rp('src/index.js')],
outdir: rp('./dist'),
naming: {
entry: 'app.mjs',
},
define: {
VERSION: JSON.stringify(pkg.version),
},
env: 'KEVISUAL_*',
});
+27
View File
@@ -0,0 +1,27 @@
{
"name": "@kevisual/xhs",
"version": "0.0.1",
"description": "",
"main": "app.mjs",
"types": "app.d.ts",
"scripts": {
"build": "bun run bun.config.mjs",
"postbuild": "dts -i src/index.js -o app.d.ts",
"dts": "dts -i src/index.js -o app.d.ts"
},
"file": [
"dist"
],
"publishConfig": {
"access": "public"
},
"keywords": [],
"author": "abearxiong <xiongxiao@xiongxiao.me> (https://www.xiongxiao.me)",
"license": "MIT",
"packageManager": "pnpm@10.10.0",
"type": "module",
"dependencies": {},
"devDependencies": {
"@kevisual/xhs-core": "workspace:*"
}
}
+66
View File
@@ -0,0 +1,66 @@
import { XhsClient as XhsClientBase } from '@kevisual/xhs-core';
export const getSign = async (uri: string, data: any, a1: string, web_session?: string) => {
const signs = await fetch('http://light.xiongxiao.me:5006/sign', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify({
uri,
data,
a1,
web_session: web_session,
}),
}).then((res) => res.json());
return signs;
};
type XhsOptions = {
cookie?: string;
};
export class XhsClient extends XhsClientBase {
constructor(opts: XhsOptions) {
super(opts as any);
}
/**
* 获取未读消息
* @returns
*/
async getUnread(): Promise<UnreadCount> {
const url = '/api/sns/web/unread_count';
const response = await this.get(url);
return response;
}
async sign(uri: string, data: any, config: any) {
let header = config?.header || {};
const cookieDist = this.getCookieMap();
const web_session = cookieDist['web_session'];
const a1 = cookieDist['a1'];
const res = await getSign(uri, data, a1, web_session);
header['x-s'] = res['x-s'];
header['x-t'] = res['x-t'];
config.header = header;
return config;
}
async getNoteById(noteId: string, xsecToken?: string) {
const data = {
source_note_id: noteId,
image_scenes: ['CRD_WM_WEBP'],
};
const uri = '/api/sns/web/v1/feed';
try {
const response = await this.post(uri, data, { sign: this.sign.bind(this) });
return response['items'][0]['node_card'];
} catch (error) {
console.log(error);
}
}
}
type UnreadCount = {
unread_count: number;
likes: number;
connections: number;
mentions: number;
};
+4
View File
@@ -0,0 +1,4 @@
import { XhsClient } from '../index.ts';
export const cookie = "a1=19686f83a65uiloc0y7wv79une457hsjh5lt00dpe40000147626;abRequestId=0a794332-4561-5f49-93f7-780b8b028e1f;access-token-creator.xiaohongshu.com=customer.creator.AT-68c517498636784561614544frjvxzj7yu8iewie;agora_session=6a0031373435393132333637323735343733393437313634000000000000;customerClientId=536706778174172;galaxy_creator_session_id=OhpHDDSoADhNEhnH5LLnQpletFLApu1fd91f;galaxy.creator.beaker.session.id=1745912429847011598150;gid=yjKqYfK0qDyYyj2DDSqd4ujxyW9kvxIuT62ddkMWhElyuxq8yDd6hl888q2WYy88j8i80yYD;loadts=1746020512562;sec_poison_id=441c932e-a6ac-4d8d-97ae-beb14adb1929;unread={%22ub%22:%2267eaf1fe000000001202c3ea%22%2C%22ue%22:%226803aa37000000001c0319d8%22%2C%22uc%22:35};web_session=040069b2e9c511ca302086ca253a4bde8b1cd1;webBuild=4.62.3;webId=97e5f097499594cad49aa0bd1a8ed83f;websectiga=3633fe24d49c7dd0eb923edc8205740f10fdb18b25d424d2a2322c6196d2a4ad;x-user-id-creator.xiaohongshu.com=639d86590000000026006076;xsecappid=xhs-pc-web;acw_tc=0a00df6217460205042195762e721fba339a0dbe8e4738b961a5ff15e74619;"
export const client = new XhsClient({ cookie } as any);
+15
View File
@@ -0,0 +1,15 @@
import { client } from '../common.ts';
// client.getNoteComments()
// client.getNoteById('67dcc34e000000000602a8eb', 'ABuYS8Xb1o08DlRmMLIabdqnW0OKnLR9nMpDGq5bVRdvk').then((res) => {
// console.log(res);
// });
// client.getNoteByIdFromHtml('67dcc34e000000000602a8eb', 'ABuYS8Xb1o08DlRmMLIabdqnW0OKnLR9nMpDGq5bVRdvk').then((res) => {
// console.log(res);
// });
const id = '6810d722000000002100f139';
const x = 'LBEqTFigLzp41AdwQ-E3hbQScnvrx2flLgHElHpQ8zHWc=';
client.getNoteByIdFromHtml(id, x).then((res) => {
console.log(res);
});
@@ -0,0 +1,5 @@
import { client } from '../common.ts';
client.getSelfInfoV2().then((res) => {
console.log(res);
});
+5
View File
@@ -0,0 +1,5 @@
import { client } from '../common.ts';
client.getUnread().then((res) => {
console.log(res);
});
+834 -9
View File
File diff suppressed because it is too large. Load diff
+3
View File
@@ -0,0 +1,3 @@
packages:
- packages/*
- submodules/*
-75
View File
@@ -1,75 +0,0 @@
import resolve from '@rollup/plugin-node-resolve';
import commonjs from '@rollup/plugin-commonjs';
import json from '@rollup/plugin-json';
import path from 'path';
import esbuild from 'rollup-plugin-esbuild';
import alias from '@rollup/plugin-alias';
import replace from '@rollup/plugin-replace';
import pkgs from './package.json' with {type: 'json'};
const isDev = process.env.NODE_ENV === 'development';
const input = isDev ? './src/dev.ts' : './src/main.ts';
/**
* @type {import('rollup').RollupOptions}
*/
const config = {
input,
output: {
dir: './dist',
entryFileNames: 'app.mjs',
chunkFileNames: '[name]-[hash].mjs',
format: 'esm',
},
plugins: [
replace({
preventAssignment: true, // 防止意外赋值
DEV_SERVER: JSON.stringify(isDev), // 替换 process.env.NODE_ENV
APP_VERSION: JSON.stringify(pkgs.version),
}),
alias({
// only esbuild needs to be configured
entries: [
{ find: '@', replacement: path.resolve('src') }, // 配置 @ 为 src 目录
{ find: 'http', replacement: 'node:http' },
{ find: 'https', replacement: 'node:https' },
{ find: 'fs', replacement: 'node:fs' },
{ find: 'path', replacement: 'node:path' },
{ find: 'crypto', replacement: 'node:crypto' },
{ find: 'zlib', replacement: 'node:zlib' },
{ find: 'stream', replacement: 'node:stream' },
{ find: 'net', replacement: 'node:net' },
{ find: 'tty', replacement: 'node:tty' },
{ find: 'tls', replacement: 'node:tls' },
{ find: 'buffer', replacement: 'node:buffer' },
{ find: 'timers', replacement: 'node:timers' },
// { find: 'string_decoder', replacement: 'node:string_decoder' },
{ find: 'dns', replacement: 'node:dns' },
{ find: 'domain', replacement: 'node:domain' },
{ find: 'os', replacement: 'node:os' },
{ find: 'events', replacement: 'node:events' },
{ find: 'url', replacement: 'node:url' },
{ find: 'assert', replacement: 'node:assert' },
{ find: 'util', replacement: 'node:util' },
],
}),
resolve({
preferBuiltins: true, // 强制优先使用内置模块
}),
commonjs(),
esbuild({
target: 'node22', //
minify: false, // 启用代码压缩
tsconfig: 'tsconfig.json',
}),
json(),
],
external: [
/@kevisual\/router(\/.*)?/, //, // 路由
/@kevisual\/use-config(\/.*)?/, //
'sequelize', // 数据库 orm
'ioredis', // redis
'pg', // pg
],
};
export default config;
View File
Whitespace-only changes.
+2 -1
View File
@@ -1,5 +1,6 @@
import { Redis } from 'ioredis'; import { Redis } from 'ioredis';
import { config } from './config.ts'; import { config } from './config.ts';
import { useContextKey } from '@kevisual/use-config/context';
type initRedisOpts = { type initRedisOpts = {
onConnect?: () => void; // 连接成功的回调函数 onConnect?: () => void; // 连接成功的回调函数
@@ -36,7 +37,7 @@ const initRedis = (config?: any, options?: initRedisOpts) => {
return redis; return redis;
}; };
// 配置 Redis 连接 // 配置 Redis 连接
export const redis = useConfigKey('redis', () => initRedis(config)); export const redis = useContextKey('redis', () => initRedis(config));
// 初始化 Redis 客户端 // 初始化 Redis 客户端
export const redisPublisher = new Redis(); // 用于发布消息 export const redisPublisher = new Redis(); // 用于发布消息
+2
View File
@@ -0,0 +1,2 @@
// https://edith.xiaohongshu.com/api/sns/web/unread_count
export const XHS_GET_UNREAD = 'unread_count';
View File
Whitespace-only changes.
+43
View File
@@ -0,0 +1,43 @@
import { redis } from '@/modules/redis.ts';
import { Queue } from 'bullmq';
import { nanoid } from 'nanoid';
const XHS_QUEUE_NAME = 'XHS_QUEUE';
export const queue = new Queue(XHS_QUEUE_NAME, {
connection: redis,
});
// 初始启动
async function start() {
const res = await queue.add(
'start-job',
{
name: 'initialJob',
},
{
delay: 0, // 立即执行
removeOnComplete: true,
removeOnFail: true,
jobId: nanoid(), // 使用 nanoid 生成唯一 ID
},
);
console.log('Queue started:', res.id);
}
//
start();
const getTasks = async () => {
const tasks = await queue.getJobs(['waiting', 'active', 'completed', 'failed']);
return tasks;
};
const getTask = async (id: string) => {
const task = await queue.getJob(id);
return task;
};
const removeTask = async (id: string) => {
const task = await queue.getJob(id);
if (task) {
await task.remove();
}
};
// const task = await getTask('4');
// console.log('task', task);
+52
View File
@@ -0,0 +1,52 @@
import { redis } from '@/modules/redis.ts';
import { Queue, Worker } from 'bullmq';
import { clamp } from 'lodash-es';
import { nanoid } from 'nanoid';
const XHS_QUEUE_NAME = 'XHS_QUEUE';
export const queue = new Queue(XHS_QUEUE_NAME);
export const sleep = (ms: number) => {
return new Promise((resolve) => setTimeout(resolve, ms));
};
export const worker = new Worker(
XHS_QUEUE_NAME,
async (job) => {
const startTime = Date.now();
console.log('job', job.name, job.data);
await sleep(1000);
const endTime = Date.now();
const duration = endTime - startTime;
return {
startTime: startTime,
endTime: endTime,
duration: duration,
};
},
{ connection: redis, concurrency: 1 },
);
worker.on('completed', async (job) => {
console.log('job completed', job.name, job.id, job.returnvalue);
const duration = job.returnvalue.duration || 0;
const maxNextTime = 20 * 1000; // 5 minutes
const nextTime = clamp(maxNextTime - duration, 0, maxNextTime);
const hasJobs = await queue.getJobCounts('waiting', 'wait', 'delayed');
console.log('hasJobs', nextTime, 'joblenght', hasJobs);
if (hasJobs.delayed + hasJobs.wait > 0) {
console.log('======has jobs, no need to add new job');
} else {
const id = nanoid();
queue.add(
'repeact-call-job' + id,
{},
{
delay: nextTime,
removeOnComplete: true,
removeOnFail: {
age: 24 * 3600, // keep up to 24 hours
},
jobId: id,
},
);
}
});