:root {
  --black: #0a0a0a;
  --ink: #161616;
  --muted: #6d6d6d;
  --line: #e6e6e6;
  --bg: #f6f6f6;
  --white: #ffffff;
  --el-color-primary: #0a0a0a;
  --el-color-primary-light-3: #3a3a3a;
  --el-color-primary-light-5: #6a6a6a;
  --el-color-primary-light-7: #9a9a9a;
  --el-color-primary-light-8: #b5b5b5;
  --el-color-primary-light-9: #e6e6e6;
  --el-color-primary-dark-2: #000000;
  --el-border-radius-base: 2px;
  --el-font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--el-font-family); color: var(--ink); background: #fff; line-height: 1.7; font-size: 15px; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
h1, h2, h3, h4, h5 { line-height: 1.35; margin: 0; font-weight: 600; color: var(--ink); }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: min(1200px, calc(100% - 48px)); margin: 0 auto; }
.section { padding: 72px 0; }
.section.alt { background: var(--bg); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 40px; }
.section-kicker { font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: #999; font-weight: 500; }
.section-title { font-size: 28px; margin-top: 8px; }
.section-sub { color: var(--muted); margin-top: 12px; }

.site-bg { position: fixed; inset: 0; z-index: -1; background-size: cover; background-position: center; opacity: .10; }

/* 顶栏 + 头部 */
.topbar { background: var(--black); color: rgba(255,255,255,.75); font-size: 13px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; height: 38px; }
.topbar .tb-item { display: inline-flex; align-items: center; gap: 7px; margin-left: 22px; }
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 20px; }
.brand-mark { width: 42px; height: 42px; border-radius: 2px; background: var(--black); color: #fff; display: grid; place-items: center; font-size: 18px; flex: none; overflow: hidden; }
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand small { display: block; font-size: 11px; font-weight: 400; color: var(--muted); letter-spacing: .04em; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-link { padding: 8px 14px; font-size: 15px; color: var(--ink); position: relative; }
.nav-link:hover { background: var(--bg); }
.nav-link.active { font-weight: 600; }
.nav-link.active::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; background: var(--black); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.hamburger { display: none; }

/* 横幅 */
.banner { position: relative; color: #fff; background: var(--black); overflow: hidden; }
.banner-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.65), rgba(0,0,0,.12)); }
.banner-inner { position: relative; z-index: 2; padding: 96px 0; max-width: 760px; }
.banner h1 { color: #fff; font-size: clamp(30px, 4.4vw, 50px); font-weight: 600; line-height: 1.25; }
.banner p { color: rgba(255,255,255,.82); margin-top: 18px; font-size: 17px; }
.banner-actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.page-hero { background: var(--black); color: #fff; padding: 52px 0; }
.page-hero h1 { color: #fff; font-size: 28px; }
.page-hero p { color: rgba(255,255,255,.72); margin-top: 8px; }
.crumbs { font-size: 13px; color: rgba(255,255,255,.55); margin-top: 12px; }

/* 网格卡片 */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--line); transition: transform .18s ease, box-shadow .18s ease; overflow: hidden; }
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 40px rgba(0,0,0,.08); }
.media { aspect-ratio: 16/10; background: var(--bg); display: grid; place-items: center; color: #a9a9a9; overflow: hidden; }
.media img { width: 100%; height: 100%; object-fit: cover; }
.svc-media { height: 170px; background: var(--bg); border-radius: 8px; overflow: hidden; margin-bottom: 16px; }
.svc-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 18px 20px 20px; }
.card-cat { font-size: 12px; color: #999; letter-spacing: .06em; }
.card-body h3 { font-size: 17px; margin: 7px 0 8px; }
.card-body p { color: var(--muted); font-size: 14px; }

.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery-item { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--bg); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 12px; color: #fff; font-size: 14px; background: linear-gradient(transparent, rgba(0,0,0,.7)); }

/* 页脚 */
.site-footer { background: var(--black); color: rgba(255,255,255,.62); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 34px; padding: 52px 0 34px; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.site-footer p { font-size: 13.5px; margin-top: 14px; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 13.5px; }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: rgba(255,255,255,.45); }
.footer-bottom .beian { display: flex; gap: 18px; flex-wrap: wrap; }

.muted { color: var(--muted); }
.center { text-align: center; }
.mt-16 { margin-top: 16px; }
.mt-32 { margin-top: 32px; }
.empty { text-align: center; padding: 40px 0; color: var(--muted); }

.reveal { opacity: 1; transform: none; transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
.view-enter-active, .view-leave-active { transition: opacity .22s ease, transform .22s ease; }
.view-enter-from { opacity: 0; transform: translateY(10px); }
.view-leave-to { opacity: 0; transform: translateY(-6px); }

/* 让 Element Plus 更贴合黑白主题 */
.el-button { font-weight: 500; }
.el-card { border-radius: 2px; }
.el-table { --el-table-border-color: var(--line); }

@media (max-width: 960px) {
  .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .topbar .tb-right { display: none; }
  .nav-links, .nav-actions { display: none; }
  .hamburger { display: grid; place-items: center; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 10px 18px 18px; gap: 2px; box-shadow: 0 12px 30px rgba(0,0,0,.08); }
  .grid-4, .grid-3, .grid-2, .gallery-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
