@import url('bcv-ui/theme.css');

/* 帮助中心沿用入口和工作区的深色配色。 */
:root {
    --bg: var(--bcv-bg);
    --panel: var(--bcv-surface);
    --panel-2: var(--bcv-raised);
    --line: var(--bcv-line);
    --line-2: var(--bcv-edge);
    --text: var(--bcv-text);
    --text-2: var(--bcv-muted);
    --text-3: var(--bcv-quiet);
    /* 和入口页、工作区一个调子：只用一种强调色（金），不再一个产品一个颜色（紫蓝绿黄粉凑在一起像另一个网站） */
    --vrman: var(--bcv-gold);
    --vrworld: var(--bcv-gold);
    --vrdrama: var(--bcv-gold);
    --studio: var(--bcv-gold);
    --vrasset: var(--bcv-gold);
    --radius: 12px;
    --c: var(--bcv-gold);
}
.is-vrman, .is-b { --c: var(--vrman); }
.is-vrworld, .is-c { --c: var(--vrworld); }
.is-vrdrama, .is-v { --c: var(--vrdrama); }
.is-studio { --c: var(--studio); }
.is-vrasset { --c: var(--vrasset); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
    margin: 0; color: var(--text);
    background: linear-gradient(180deg, #07121b9e 0, #07121bd9 340px, var(--bg) 720px),
        url('bcv-ui/worlds-gateway.webp') top center / max(100%, 1280px) auto, var(--bg);      /* 入口页那扇门：顶上隐约露出来，往下化进底色 */
    background-repeat: no-repeat; line-height: 1.6; font-size: 16px; overflow-x: hidden;
    font-family: var(--bcv-font);
    overflow-wrap: break-word; transition: opacity .25s;
}
body.is-loading { opacity: 0; }
html:lang(th) body, html:lang(hi) body, html:lang(ar) body { line-height: 1.8; }          /* 字形高的文字：行距松一点 */
html:lang(de) body, html:lang(ru) body, html:lang(tr) body, html:lang(id) body { hyphens: auto; }  /* 词长的语言：放不下就断词 */
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ol, ul, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
:focus-visible { outline: 2px solid var(--c); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1160px, 100%); margin-inline: auto; padding-inline: 20px; }

/* ---------- 顶栏 ---------- */
.top {
    position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 20px; padding: 12px 20px;
    background: var(--bcv-glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }                 /* 和入口页同一个标：金环 + BCV WORLDS */
.brand-lockup { display: grid; gap: 3px; }
.brand-name { font-size: 16px; font-weight: 700; line-height: 1.1; letter-spacing: .10em; }
.brand-name > span { color: #e0e5eb; font-size: 12px; font-weight: 500; }
.brand-terms { color: var(--bcv-gold); font-size: 11px; font-weight: 500; line-height: 1.25; }
.top-nav { display: flex; gap: 26px; margin-inline-start: auto; font-size: 14px; color: var(--text-2); }
.top-nav a:hover { color: var(--bcv-gold); }
.lang { display: flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 14px; background: #0a1624b8; }
.lang select { max-width: 150px; border: 0; background: transparent; color: var(--text); font: inherit; cursor: pointer; }
.lang select option { background: var(--panel); color: var(--text); }

/* ---------- 首屏 ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; align-items: center; padding-block: 72px 56px; }
.wordmark { display: grid; font: 400 clamp(56px, 9vw, 116px)/.94 var(--bcv-serif); letter-spacing: -.03em; color: var(--bcv-ink); direction: ltr; }
[dir=rtl] .wordmark { justify-items: end; }
.wordmark b, .meaning h2 b { color: var(--c); font-weight: 400; }
.slogan {
    margin-top: 22px; font-size: clamp(15px, 1.5vw, 18px); font-weight: 600; letter-spacing: .035em; direction: ltr;
    color: var(--bcv-gold); width: fit-content;
}
[dir=rtl] .slogan { margin-inline-start: 0; }
.lead { margin-top: 14px; max-width: 34em; font-size: clamp(16px, 1.6vw, 19px); color: var(--text-2); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.btn {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 18px; border: 1px solid var(--line-2); border-radius: 7px;
    font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--text); background: #0b1625b8; transition: background .2s, border-color .2s;
}
.btn:hover { border-color: #f7ca8c90; }
.btn.is-main { background: var(--bcv-gold); border-color: var(--bcv-gold); color: var(--bcv-gold-ink); }
.btn.is-main:hover { background: #ffdfaf; }
.btn.is-waiting, .btn.is-waiting:hover { border-style: dashed; border-color: var(--line-2); color: var(--text-2); cursor: default; }      /* 还没开放的产品：等待开放 */
.arrow { font-style: normal; }
[dir=rtl] .arrow { transform: scaleX(-1); }

.hero-shots { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }      /* 五张：上面三张、下面两张 */
.shot { grid-column: span 2; position: relative; overflow: hidden; border-radius: 10px; border: 1px solid var(--line-2); box-shadow: var(--bcv-shadow); transition: transform .2s, border-color .2s; }
.shot:nth-child(n+4) { grid-column: span 3; }
.shot:hover { border-color: var(--c); }
.shot img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.shot span {
    position: absolute; inset-inline-start: 8px; inset-block-end: 8px; max-width: calc(100% - 16px); padding: 3px 10px; border-radius: 999px; font-size: 12.5px;
    background: var(--bcv-glass); border: 1px solid var(--line-2); color: var(--text-2);
}
.shot i { font-style: normal; }
.shot b, .card h3 b, .tab b, .panel-head h3 b { color: var(--c); font-weight: 700; letter-spacing: .04em; }

/* ---------- Build / Create / Vision ---------- */
.meaning { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding-block: 24px 8px; }
.meaning article { padding: 22px 24px; border-radius: var(--radius); background: var(--bcv-glass); border: 1px solid var(--line); border-top: 1px solid var(--c); }
.meaning h2 { font: 400 34px/1.1 var(--bcv-serif); color: var(--bcv-ink); direction: ltr; }
[dir=rtl] .meaning h2 { text-align: right; }
.meaning p { margin-top: 6px; color: var(--text-2); font-size: 15.5px; }

/* ---------- 各版块共用 ---------- */
.block { padding-block: 72px 0; }
.title { font: 400 clamp(34px, 4.6vw, 56px)/1.08 var(--bcv-serif); letter-spacing: -.02em; color: var(--bcv-ink); }
.sub { margin-top: 10px; max-width: 46em; color: var(--text-2); font-size: 17px; }

/* ---------- 产品卡 ---------- */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 30px; }
.card { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); transition: border-color .2s, transform .2s; }
.card:hover { border-color: var(--c); transform: translateY(-2px); }
.card:last-child:nth-child(odd) { grid-column: 1 / -1; flex-direction: row; }       /* 单出来的最后一张：横着铺满一行，左边视频右边字 */
.card:last-child:nth-child(odd) .card-shot { flex: 0 0 50%; align-self: center; }
.card-shot video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #000; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.card h3, .panel-head h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-size: 24px; line-height: 1.25; }
.card h3 b, .panel-head h3 b { font-size: 13px; padding: 2px 10px; border: 1px solid #f7ca8c80; border-radius: 6px; }
.card-tag { margin-top: 8px; font-size: 17px; font-weight: 600; }
.card-desc { margin-top: 8px; color: var(--text-2); font-size: 15.5px; flex: 1; }
.card .actions { margin-top: 18px; }
.login { margin-top: 20px; padding: 12px 16px; border-radius: 12px; border: 1px dashed var(--line-2); color: var(--text-2); font-size: 15px; }

/* ---------- 怎么玩：三步 ---------- */
.how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 30px; counter-reset: how; }
.how li { counter-increment: how; padding: 22px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.how li::before {
    content: counter(how); display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 14px; border-radius: 50%;
    font: 400 20px/1 var(--bcv-serif); color: var(--bcv-gold); border: 1px solid var(--bcv-gold); box-shadow: inset 0 0 8px #f7ca8c55, 0 0 14px #f7ca8c36;      /* 和品牌的金环一个样子 */
}
.how h3 { font-size: 20px; }
.how p { margin-top: 6px; color: var(--text-2); font-size: 15.5px; }

/* ---------- 帮助中心 ---------- */
.tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 30px; }
.tab {
    display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line);
    background: var(--panel); color: var(--text-2); font: inherit; font-size: 15px; text-align: start; cursor: pointer; transition: border-color .15s, background .15s;
}
.tab b { font-size: 13px; }
.tab:hover { border-color: var(--line-2); }
.tab[aria-selected=true] { border-color: var(--c); background: var(--panel-2); color: var(--text); box-shadow: inset 0 -2px 0 var(--c); }
.panel { margin-top: 16px; padding: 28px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.panel-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 24px; align-items: center; }
.panel-head p { grid-column: 1; color: var(--text-2); max-width: 52em; }
.panel-head .btn { grid-column: 2; grid-row: 1 / span 2; }
.steps { display: grid; gap: 28px; margin-top: 28px; }
.step { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; align-items: center; }
.step:nth-child(even) figure { order: 2; }
.step figure { overflow: hidden; border-radius: 12px; border: 1px solid var(--line-2); background: #000; }
.step img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.step-no { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font: 400 17px/1 var(--bcv-serif); color: var(--bcv-gold); border: 1px solid var(--bcv-gold); }
.step h4 { margin-top: 10px; font-size: 21px; line-height: 1.3; }
.step p { margin-top: 8px; color: var(--text-2); }
.panel-cols { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 32px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); align-items: start; }
.says h4, .demo h4 { font-size: 19px; }
.note { margin-top: 6px; color: var(--text-3); font-size: 14.5px; }
.says ul { display: grid; gap: 10px; margin-top: 16px; }
.says li { display: grid; gap: 4px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.says li:last-child { border-bottom: 0; }
.says li span { color: var(--text-2); font-size: 15px; }
.phrase {
    position: relative; justify-self: start; max-width: 100%; padding: 6px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel-2);
    color: var(--text); font: inherit; font-size: 15.5px; text-align: left; cursor: copy; transition: border-color .15s;
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
}
.phrase:hover { border-color: var(--c); }
.phrase.is-copied::after {
    content: attr(data-done); position: absolute; inset-inline-end: 6px; inset-block-start: -12px; padding: 1px 8px; border-radius: 999px;
    font-size: 12px; font-weight: 700; color: var(--bcv-gold-ink); background: var(--c); white-space: nowrap;
}
.demo video { width: 100%; margin-top: 16px; aspect-ratio: 16 / 9; border-radius: 12px; border: 1px solid var(--line-2); background: #000; }
.badge { display: inline-block; padding: 1px 9px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text-2); font-size: 12.5px; }

/* ---------- 常见问题 ---------- */
.faq { display: grid; gap: 10px; margin-top: 26px; }
.faq details { border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 15px 20px; font-size: 17px; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 22px; font-weight: 400; line-height: 1; color: var(--text-3); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details[open] summary { color: var(--bcv-gold); }
.faq p { padding: 0 20px 18px; color: var(--text-2); }

/* ---------- 页脚 ---------- */
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 20px; margin-top: 80px; padding-block: 26px 40px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 14.5px; }
.foot-links { display: flex; gap: 16px; flex-wrap: wrap; }
.foot b { color: var(--text-2); letter-spacing: .06em; }
.foot a:hover { color: var(--text); }
.noscript { padding: 40px 20px; text-align: center; color: var(--text-2); }
.noscript a { color: var(--bcv-gold); text-decoration: underline; }

/* ---------- 窄屏：一列排下来 ---------- */
@media (max-width: 900px) {
    .hero { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-block: 44px 32px; }
    .step, .panel-cols { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .step:nth-child(even) figure { order: 0; }
    .panel-cols { gap: 32px; }
}
@media (max-width: 720px) {
    .top { gap: 12px; padding-inline: 16px; }
    .top-nav { display: none; }
    .lang { margin-inline-start: auto; }
    .wrap { padding-inline: 16px; }
    .meaning, .cards, .how { grid-template-columns: minmax(0, 1fr); }
    .tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tab:last-child:nth-child(odd) { grid-column: 1 / -1; }
    .card:last-child:nth-child(odd) { flex-direction: column; }
    .card:last-child:nth-child(odd) .card-shot { flex: none; align-self: stretch; }
    .block { padding-block: 52px 0; }
    .panel { padding: 18px 16px; }
    .panel-head { grid-template-columns: minmax(0, 1fr); }
    .panel-head .btn { grid-column: 1; grid-row: auto; justify-self: start; }
    .hero-shots { gap: 10px; }
    .shot i { display: none; }          /* 小图上只留产品代号，译名长了会盖住画面 */
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}
