/* LovelyBen 企业站设计系统：深海军蓝 + 青紫光线，克制、通透、科技感 */
/* 三个模板包各带一份相同副本，互不依赖、各自独立 */

:root {
  --bg: #070d1d;
  --bg-2: #0a1329;
  --panel: rgba(148, 178, 255, 0.055);
  --panel-2: rgba(148, 178, 255, 0.09);
  --line: rgba(148, 178, 255, 0.16);
  --line-soft: rgba(148, 178, 255, 0.09);
  --ink: #eaf0ff;
  --body: #c3d2f2;
  --muted: #93a7cf;
  --faint: #5f7197;
  --cyan: #3ae2ff;
  --violet: #8b7cff;
  --grad: linear-gradient(94deg, var(--cyan), var(--violet));
  --radius: 20px;
  --font: "Avenir Next", "Segoe UI", system-ui, -apple-system,
    "Hiragino Kaku Gothic ProN", "Hiragino Sans",
    "Noto Sans CJK SC", "Noto Sans SC", "Yu Gothic UI", "Yu Gothic", sans-serif;
  --mono: "SF Mono", "Cascadia Code", Consolas, "Roboto Mono", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--body);
  line-height: 1.75;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* 全站底纹：径向光晕 + 极淡网格，营造科技感而不喧闹 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 480px at 85% -5%, rgba(139, 124, 255, 0.16), transparent 60%),
    radial-gradient(1000px 560px at -10% 22%, rgba(58, 226, 255, 0.10), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 55%, var(--bg) 100%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(148, 178, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 178, 255, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 62% at 50% 0%, black 30%, transparent 78%);
  pointer-events: none;
}

::selection { background: rgba(58, 226, 255, 0.35); color: #fff; }

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.wrap { width: min(1180px, 92vw); margin: 0 auto; }

/* ---------- 页眉 ---------- */
.site-head {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(7, 13, 29, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.head-in {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  flex: none;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 34px; height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--grad);
  color: #06121f;
  font-weight: 800;
  font-size: 19px;
  box-shadow: 0 4px 18px rgba(58, 226, 255, 0.35);
}
.brand-logo { height: 34px; width: auto; }
.brand-name { font-size: 19px; font-weight: 700; letter-spacing: 0.01em; color: var(--ink); }
.brand-sup {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.32em;
  color: var(--faint);
  margin-top: 3px;
}
.navtoggle { display: none; }
.burger {
  display: none;
  margin-left: auto;
  cursor: pointer;
  padding: 10px 4px;
}
.burger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--ink);
  margin: 5px 0;
  border-radius: 2px;
}
.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 34px;
}
.site-nav > ul {
  display: flex;
  gap: 30px;
  list-style: none;
}
.site-nav > ul > li { position: relative; }
.site-nav > ul > li > a {
  color: var(--body);
  font-size: 15px;
  font-weight: 500;
  padding: 6px 2px;
  display: inline-block;
}
.site-nav > ul > li > a:hover { color: #fff; text-decoration: none; }
.site-nav .sub {
  display: none;
  position: absolute;
  top: 100%; left: -14px;
  min-width: 180px;
  list-style: none;
  background: rgba(10, 19, 41, 0.97);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px;
}
.site-nav li:hover .sub { display: block; }
.site-nav .sub a {
  display: block;
  padding: 7px 12px;
  border-radius: 8px;
  color: var(--body);
  font-size: 14.5px;
}
.site-nav .sub a:hover { background: var(--panel-2); color: #fff; text-decoration: none; }
.langs { display: flex; gap: 4px; }
.langs a {
  font-size: 12.5px;
  color: var(--muted);
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
}
.langs a:hover { color: #fff; text-decoration: none; }
.langs a.on {
  color: var(--ink);
  border-color: var(--line);
  background: var(--panel);
}

/* ---------- 通用版块 ---------- */
section { position: relative; }
.section { padding: 108px 0; }
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.38em;
  color: var(--cyan);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before {
  content: "";
  width: 34px; height: 1px;
  background: var(--grad);
}
.eyebrow.center { justify-content: center; }
.eyebrow.center::after {
  content: "";
  width: 34px; height: 1px;
  background: var(--grad);
}
.sec-title {
  color: var(--ink);
  font-size: clamp(30px, 4.2vw, 44px);
  font-weight: 750;
  line-height: 1.3;
  letter-spacing: 0.01em;
  margin: 18px 0 0;
}
.sec-head { margin-bottom: 54px; }
.sec-head.center { text-align: center; }
.sec-head.center .eyebrow { justify-content: center; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 30px;
  border-radius: 999px;
  font-size: 15.5px;
  font-weight: 650;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary {
  background: var(--grad);
  color: #06121f;
  box-shadow: 0 10px 30px rgba(58, 226, 255, 0.28);
}
.btn-primary:hover { color: #06121f; box-shadow: 0 14px 36px rgba(139, 124, 255, 0.38); }
.btn-ghost {
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(148, 178, 255, 0.05);
}
.btn-ghost:hover { color: #fff; background: rgba(148, 178, 255, 0.12); }

/* 滚动渐入（无 JS 时内容直接可见，脚本给 html 加 .js 后才启用隐藏态） */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.85s ease, transform 0.85s ease;
}
html.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- 首页 Hero ---------- */
.hero {
  padding: 196px 0 168px;
  background-size: cover;
  background-position: center 62%;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(7, 13, 29, 0.62) 0%,
    rgba(7, 13, 29, 0.38) 42%,
    rgba(7, 13, 29, 0.9) 82%,
    var(--bg) 100%);
}
.hero-in { position: relative; max-width: 820px; }
.hero .eyebrow { margin-bottom: 26px; }
.hero h1 {
  color: #fff;
  font-size: clamp(42px, 6.6vw, 78px);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: 0.005em;
  text-shadow: 0 6px 44px rgba(0, 0, 0, 0.45);
}
body.lang-zh-hans .hero h1, body.lang-ja .hero h1 { line-height: 1.28; }
.hero .lead {
  margin-top: 26px;
  font-size: clamp(16.5px, 2vw, 19.5px);
  line-height: 1.85;
  color: #d5e1fa;
  max-width: 640px;
}
.hero-cta { margin-top: 42px; display: flex; gap: 16px; flex-wrap: wrap; }
.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 108px;
  transform: translateX(-50%);
  width: 24px; height: 40px;
  border: 1.5px solid rgba(234, 240, 255, 0.4);
  border-radius: 14px;
}
.hero-scroll::after {
  content: "";
  position: absolute;
  left: 50%; top: 8px;
  width: 4px; height: 8px;
  margin-left: -2px;
  border-radius: 4px;
  background: var(--cyan);
  animation: scrollDot 2.2s ease-in-out infinite;
}
@keyframes scrollDot {
  0%, 100% { transform: translateY(0); opacity: 1; }
  55% { transform: translateY(13px); opacity: 0.15; }
}

/* ---------- 亮点数据条 ---------- */
.stats-band { margin-top: -72px; position: relative; z-index: 3; }
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: blur(10px);
}
.stat {
  background: rgba(10, 19, 41, 0.88);
  padding: 30px 28px 26px;
  text-align: center;
}
.stat b {
  display: block;
  font-size: 36px;
  font-weight: 800;
  line-height: 1.15;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat span { display: block; margin-top: 7px; font-size: 13.5px; color: var(--muted); letter-spacing: 0.06em; }

/* ---------- 简介 / 我们做什么 ---------- */
.intro-body {
  max-width: 830px;
  margin: 0 auto;
  text-align: center;
  font-size: 17.5px;
  line-height: 2;
  color: var(--body);
}
.intro-body p { margin-bottom: 1.2em; }
.intro-body p:last-child { margin-bottom: 0; }
.caps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.cap {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 34px 30px 30px;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.cap:hover { transform: translateY(-4px); border-color: var(--line); background: var(--panel-2); }
.cap .dot {
  width: 42px; height: 42px;
  border-radius: 13px;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  background: rgba(7, 13, 29, 0.5);
}
.cap .dot i {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 14px rgba(58, 226, 255, 0.8);
}
.cap h3 { color: var(--ink); font-size: 19.5px; font-weight: 700; margin-bottom: 10px; }
.cap p { font-size: 15px; line-height: 1.85; color: var(--muted); }

/* ---------- 项目展示 ---------- */
.projects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.project {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 28px 28px 24px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.project:hover {
  transform: translateY(-5px);
  border-color: rgba(58, 226, 255, 0.45);
  box-shadow: 0 18px 44px rgba(2, 6, 18, 0.55), 0 0 0 1px rgba(58, 226, 255, 0.12);
}
.project-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.project h3 { color: var(--ink); font-size: 20px; font-weight: 720; letter-spacing: 0.01em; }
.tech {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--cyan);
  border: 1px solid rgba(58, 226, 255, 0.35);
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
  margin-top: 4px;
}
.project p { font-size: 14.8px; line-height: 1.8; color: var(--muted); flex: 1; }
.project-link {
  margin-top: 20px;
  font-size: 14px;
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.project-link .arr { transition: transform 0.25s ease; }
.project:hover .project-link .arr { transform: translateX(4px); }
.project-soon {
  margin-top: 20px;
  font-size: 12.5px;
  color: var(--faint);
  border: 1px dashed rgba(148, 178, 255, 0.3);
  border-radius: 999px;
  padding: 4px 12px;
  align-self: flex-start;
  letter-spacing: 0.05em;
}
.projects-note { margin-top: 30px; text-align: center; font-size: 13.5px; color: var(--faint); }

/* ---------- 首页新闻引用 ---------- */
.news-rows { border-top: 1px solid var(--line-soft); }
.news-row {
  display: grid;
  grid-template-columns: 128px 1fr auto;
  gap: 26px;
  align-items: center;
  padding: 26px 10px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--body);
  transition: background 0.25s ease, padding-left 0.25s ease;
}
.news-row:hover { background: rgba(148, 178, 255, 0.045); text-decoration: none; padding-left: 18px; }
.news-date { font-family: var(--mono); font-size: 13px; color: var(--cyan); letter-spacing: 0.06em; }
.news-row h3 { color: var(--ink); font-size: 19px; font-weight: 680; margin-bottom: 4px; }
.news-row p { font-size: 14.5px; color: var(--muted); line-height: 1.7; }
.news-arrow { color: var(--faint); font-size: 20px; transition: transform 0.25s ease, color 0.25s ease; }
.news-row:hover .news-arrow { transform: translateX(5px); color: var(--cyan); }
.news-more { margin-top: 36px; text-align: center; }

/* ---------- 联系方式 ---------- */
.contact-panel {
  position: relative;
  border-radius: 26px;
  padding: 74px 40px 70px;
  text-align: center;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(560px 260px at 18% 0%, rgba(58, 226, 255, 0.16), transparent 65%),
    radial-gradient(620px 300px at 86% 110%, rgba(139, 124, 255, 0.2), transparent 65%),
    rgba(10, 19, 41, 0.75);
}
.contact-panel .eyebrow { justify-content: center; }
.contact-panel .eyebrow::after {
  content: "";
  width: 34px; height: 1px;
  background: var(--grad);
}
.contact-panel h2 {
  color: #fff;
  font-size: clamp(30px, 4.4vw, 46px);
  font-weight: 780;
  margin: 20px 0 14px;
}
.contact-panel p { color: var(--muted); max-width: 560px; margin: 0 auto 36px; font-size: 16px; line-height: 1.9; }
.contact-mail { font-size: 17px; padding: 16px 38px; }

/* ---------- 页脚 ---------- */
.site-foot {
  border-top: 1px solid var(--line-soft);
  margin-top: 40px;
  padding: 64px 0 0;
  background: rgba(5, 9, 20, 0.55);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
}
.foot-logo { display: flex; align-items: center; gap: 11px; margin-bottom: 16px; }
.foot-slogan { color: var(--muted); font-size: 14.5px; line-height: 1.8; max-width: 340px; }
.foot-addr { color: var(--faint); font-size: 13.5px; margin-top: 10px; }
.foot-nav { display: flex; flex-direction: column; gap: 11px; }
.foot-nav a { color: var(--body); font-size: 14.5px; }
.foot-nav a:hover { color: #fff; }
.foot-contact { display: flex; flex-direction: column; gap: 11px; }
.foot-mail { color: var(--ink); font-size: 15.5px; font-weight: 600; word-break: break-all; }
.foot-gh { color: var(--muted); font-size: 14px; }
.foot-bottom {
  border-top: 1px solid var(--line-soft);
  padding: 22px 0 26px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--faint);
}
.foot-powered a { color: var(--muted); }

/* ---------- 子页页头（新闻列表等） ---------- */
.page-head { padding: 178px 0 66px; }
.page-head h1 {
  color: #fff;
  font-size: clamp(36px, 5.2vw, 58px);
  font-weight: 800;
  line-height: 1.25;
  margin-top: 20px;
}
.page-head .tagline { margin-top: 16px; color: var(--muted); font-size: 17px; max-width: 620px; line-height: 1.85; }
.page-main { padding-bottom: 110px; }
.empty-note {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 52px 30px;
  text-align: center;
  color: var(--muted);
}

/* ---------- 新闻详情 ---------- */
.article-head { padding: 178px 0 44px; max-width: 820px; }
.article-date {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--cyan);
  letter-spacing: 0.08em;
  display: inline-flex;
  gap: 10px;
  align-items: center;
}
.article-date::before { content: ""; width: 26px; height: 1px; background: var(--grad); }
.article-head h1 {
  color: #fff;
  font-size: clamp(31px, 4.6vw, 50px);
  font-weight: 780;
  line-height: 1.35;
  margin: 20px 0 14px;
}
.article-sub { color: var(--muted); font-size: 17.5px; line-height: 1.85; }
.article-hero { max-width: 980px; margin: 10px auto 0; }
.article-hero img {
  width: 100%;
  border-radius: 24px;
  border: 1px solid var(--line);
}
.article-body { max-width: 760px; margin: 0 auto; padding: 54px 0 30px; }
.back-row { max-width: 760px; margin: 26px auto 0; padding-bottom: 100px; }
.back-link { font-size: 15px; font-weight: 600; }

/* ---------- 富文本正文 ---------- */
.prose { font-size: 16.8px; line-height: 2; color: var(--body); }
.prose p { margin-bottom: 1.35em; }
.prose h2 {
  color: var(--ink);
  font-size: 24px;
  font-weight: 720;
  margin: 1.7em 0 0.7em;
  line-height: 1.5;
}
.prose h3 { color: var(--ink); font-size: 19.5px; font-weight: 700; margin: 1.5em 0 0.6em; }
.prose ul, .prose ol { margin: 0 0 1.35em 1.4em; }
.prose li { margin-bottom: 0.4em; }
.prose strong { color: var(--ink); }
.prose blockquote {
  border-left: 3px solid var(--cyan);
  padding: 4px 0 4px 20px;
  margin: 0 0 1.35em;
  color: var(--muted);
}
.prose img { border-radius: 14px; margin: 1.2em 0; }

/* ---------- 关于页（极简：标题 + 副标题 + 正文） ---------- */
.about-main { padding: 208px 0 130px; }
.about-col { max-width: 780px; margin: 0 auto; text-align: center; }
.about-rule {
  width: 54px; height: 3px;
  border-radius: 3px;
  background: var(--grad);
  margin: 0 auto 40px;
  box-shadow: 0 4px 18px rgba(58, 226, 255, 0.4);
}
.about-col h1 {
  color: #fff;
  font-size: clamp(36px, 5.4vw, 60px);
  font-weight: 800;
  line-height: 1.3;
}
.about-sub {
  margin-top: 20px;
  font-size: clamp(17px, 2.2vw, 20.5px);
  color: var(--muted);
  line-height: 1.85;
}
.about-body { margin-top: 54px; text-align: left; }
.about-sign {
  margin-top: 58px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.3em;
  color: var(--faint);
}

/* ---------- 响应式 ---------- */
@media (max-width: 1020px) {
  .projects { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .burger { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(8, 14, 30, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 12px 4vw 20px;
  }
  .navtoggle:checked ~ .site-nav { display: flex; }
  .site-nav > ul { flex-direction: column; gap: 2px; }
  .site-nav > ul > li > a { display: block; padding: 11px 6px; font-size: 16px; }
  .site-nav .sub { position: static; display: block; border: none; background: none; padding: 0 0 6px 16px; }
  .langs { margin-top: 12px; padding: 6px; }
  .caps { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero { padding: 158px 0 148px; }
  .hero-scroll { display: none; }
  .section { padding: 78px 0; }
}
@media (max-width: 600px) {
  .projects { grid-template-columns: 1fr; }
  .news-row { grid-template-columns: 1fr auto; gap: 8px 16px; }
  .news-date { grid-column: 1 / -1; grid-row: 1; }
  .news-row > span:nth-child(2) { grid-row: 2; grid-column: 1; }
  .news-arrow { grid-row: 2; grid-column: 2; }
  .contact-panel { padding: 56px 24px 52px; }
  .about-main { padding: 168px 0 100px; }
  .page-head, .article-head { padding-top: 148px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.js [data-reveal] { opacity: 1; transform: none; }
}
