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

:root {
  --blue: #1769FF;
  --dark: #1a1a1a;
  --mid: #444;
  --muted: #666;
  --border: #e0e0e0;
  --bg: #f4f4f4;
  --white: #fff;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--dark);
  font-size: 14px;
}

a { color: inherit; text-decoration: none; }
.hidden { display: none !important; }

/* ── TOP NAV ── */
.topnav {
  background: transparent;
  height: 44px;
  position: sticky; top: 0; z-index: 300;
}
.topnav__inner {
  max-width: 1400px; margin: 0 auto; padding: 0 16px;
  height: 100%; display: flex; align-items: center; gap: 0;
}
.topnav__left { display: flex; align-items: center; gap: 20px; flex-shrink: 0; }
.topnav__center { flex: 1; padding: 0 20px; }
.topnav__right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.logo { display: flex; align-items: center; }
.topnav__links { display: flex; gap: 2px; }
.topnav__links a {
  font-size: 13px; color: #ccc; padding: 4px 10px;
  border-radius: 3px; transition: color .15s;
}
.topnav__links a:hover { color: #fff; }

.search-wrap { position: relative; display: flex; align-items: center; }
.search-icon { position: absolute; left: 10px; pointer-events: none; }
.search-box {
  width: 100%; border: none; border-radius: 4px;
  padding: 6px 12px 6px 32px;
  font-size: 13px; font-family: inherit;
  background: #fff; outline: none; color: #333;
}

.btn--trial {
  background: var(--blue); color: #fff; border: none;
  border-radius: 4px; padding: 6px 14px;
  font-size: 13px; font-weight: 500; font-family: inherit; cursor: pointer;
}
.btn--trial:hover { background: #0f55d6; }
.btn--login {
  background: transparent; color: #fff; border: 1px solid #555;
  border-radius: 4px; padding: 5px 14px;
  font-size: 13px; font-family: inherit; cursor: pointer;
}
.btn--login:hover { border-color: #999; }
.adobe-logo { color: #fff; font-size: 13px; padding-left: 8px; border-left: 1px solid #555; margin-left: 4px; }

/* ── COVER BANNER ── */
.cover-banner {
  width: 100%; height: 200px; overflow: hidden;
  background: linear-gradient(135deg, #e8e0f0 0%, #f0e8e8 40%, #e8eef8 70%, #d8e8f0 100%);
  position: relative;
}
.cover-img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }

/* ── PROFILE AREA ── */
.profile-area {
  max-width: none;
  margin: 0 auto;
  padding: 0 72px;
  position: relative;
}

/* ── PROFILE BODY: sidebar + main ── */
.profile-body {
  display: flex;
  gap: 54px;
  padding-top: 0;
  align-items: flex-start;
}

/* ── SIDEBAR ── */
.sidebar {
  width: 380px;
  flex-shrink: 0;
  margin-top: -172px;
  padding: 34px 30px 38px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 3px;
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
  position: relative;
  z-index: 20;
  text-align: center;
}

.company-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.company-logo {
  width: 122px;
  height: 122px;
  object-fit: contain;
  margin-bottom: 20px;
}

.sidebar-name {
  width: 100%;
  font-family: "Arial Black", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 14px;
  letter-spacing: 0;
  color: #2a2a2a;
}

.company-slogan {
  color: #808080;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 48px;
}

.wechat-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #787878;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 24px;
}

.wechat-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  opacity: .55;
}

.qr-code {
  width: 124px;
  height: 124px;
  object-fit: contain;
  margin-bottom: 30px;
}

.service-list {
  display: grid;
  gap: 9px;
  margin: 0 0 40px;
  padding: 0;
  list-style: none;
  color: #777;
  font-size: 17px;
  font-weight: 650;
  line-height: 1.35;
}

/* 通用 section */
.sidebar-section {
  width: 100%;
  border-top: none;
  padding-top: 0;
  margin-bottom: 30px;
  text-align: left;
}
.section-label {
  font-size: 12px;
  font-weight: 800;
  color: #777;
  margin-bottom: 12px;
}

/* 帐户连接 */
.connect-item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 8px 12px;
  background: #fff;
  cursor: pointer;
}
.connect-item:hover { background: #f8f8f8; }
.connect-logo {
  width: 92px;
  height: 28px;
  object-fit: contain;
  object-position: left center;
  filter: grayscale(1);
  opacity: .55;
}
.ext-icon { margin-left: auto; flex-shrink: 0; }

.about-text {
  color: #545454;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.9;
}

/* ── MAIN CONTENT ── */
.main-content {
  flex: 1;
  min-width: 0;
  padding-top: 0;
}

/* 徽章行 — 右上角对齐 */
.badges-row {
  display: flex; justify-content: flex-end;
  gap: 4px; margin-bottom: 16px; flex-wrap: wrap;
  min-height: 80px;
}
.badge-item {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  cursor: pointer;
}
.badge-item img { width: 36px; height: auto; display: block; }
.badge-item span { font-size: 11px; color: var(--muted); line-height: 1; }

/* Tabs */
.work-tabs {
  display: flex; gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}
.wtab {
  padding: 12px 16px; font-size: 14px; font-weight: 500;
  color: var(--muted); border-bottom: 2px solid transparent;
  cursor: pointer; transition: all .15s; margin-bottom: -1px;
}
.wtab:hover { color: var(--dark); }
.wtab.active { color: var(--dark); border-bottom-color: var(--dark); }

/* ── WORK GRID: 3 equal cols, no gap ── */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 384px), 1fr));
  gap: 24px;
}

/* ── PROJECT CARD ── */
.project-card {
  width: 100%;
  cursor: pointer;
  background: transparent;
  overflow: hidden;
  position: relative;
  border-radius: 4px;
}
.card-thumb {
  width: 100%;
  aspect-ratio: 414 / 306;
  overflow: hidden;
  position: relative;
  border-radius: 4px;
}
.card-img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .3s ease;
}
.card-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 800; color: rgba(255,255,255,.2);
  transition: transform .3s ease;
}
.media-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 2;
  padding: 5px 8px;
  border-radius: 4px;
  background: rgba(0,0,0,.66);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}
.project-card:hover .card-img,
.project-card:hover .card-placeholder { transform: scale(1.04); }

.card-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 12px;
  gap: 8px;
  opacity: 0; transition: all .2s;
}
.project-card:hover .card-overlay {
  background: rgba(0,0,0,.42); opacity: 1;
}
.ov-title {
  width: 100%;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ov-stats {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ov-stat {
  display: flex; align-items: center; gap: 4px;
  color: #fff; font-size: 12px; font-weight: 500;
}

.card-info {
  display: none;
  padding: 0;
}
.card-title {
  font-size: 13px; font-weight: 600; color: var(--dark);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 2px;
}
.card-owner { font-size: 11px; color: var(--muted); }

/* empty */
.empty-state {
  text-align: center; padding: 80px 0;
  color: var(--muted); font-size: 14px;
}

/* ── FOOTER ── */
.site-footer {
  margin-top: 64px;
  border-top: 1px solid var(--border);
  background: #fff;
  color: #666;
}
.site-footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  padding: 24px 72px;
}
.site-footer__brand {
  display: grid;
  gap: 6px;
  min-width: 260px;
}
.site-footer__brand strong {
  color: #2a2a2a;
  font-size: 14px;
}
.site-footer__brand span {
  font-size: 12px;
}
.site-footer__contact {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  flex-wrap: wrap;
  margin: 0;
  font-style: normal;
  font-size: 13px;
  line-height: 1.7;
  text-align: right;
}
.site-footer__contact span {
  white-space: nowrap;
}

/* ── LIGHTBOX ── */
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: flex-start; justify-content: center;
  overflow-y: auto; padding: 48px 20px;
}
.lb-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.78); cursor: pointer; }
.lb-panel {
  position: relative; background: #fff; border-radius: 6px;
  width: 100%; max-width: 920px; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
  animation: slideUp .22s ease;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.lb-close {
  position: absolute; top: 12px; right: 12px; z-index: 5;
  background: rgba(0,0,0,.5); border: none; color: #fff;
  width: 30px; height: 30px; border-radius: 50%;
  font-size: 13px; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.lb-close:hover { background: rgba(0,0,0,.8); }
.lb-img { width: 100%; display: block; max-height: 500px; object-fit: cover; }
.lb-img-placeholder {
  width: 100%; aspect-ratio: 16/7;
  display: flex; align-items: center; justify-content: center;
  font-size: 60px; font-weight: 800; color: rgba(255,255,255,.15);
}
.lb-video-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}
.lb-video {
  width: 100%;
  height: 100%;
  display: block;
}
.lb-body { padding: 24px 28px 32px; }
.lb-title { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.lb-owner { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.lb-stats { display: flex; gap: 28px; padding: 16px 0; border-top: 1px solid var(--border); }
.lb-snum { font-size: 17px; font-weight: 700; }
.lb-slabel { font-size: 11px; color: var(--muted); }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .profile-area { padding: 0 28px; }
  .profile-body { gap: 28px; }
  .sidebar {
    width: 340px;
    padding-right: 26px;
    padding-left: 26px;
  }
}

@media (max-width: 900px) {
  .profile-area { padding: 0 28px; }
  .profile-body { gap: 26px; }
  .sidebar {
    width: 340px;
    padding-right: 26px;
    padding-left: 26px;
  }
  .site-footer__inner {
    padding-right: 28px;
    padding-left: 28px;
  }
}

@media (max-width: 760px) {
  .profile-area { padding: 0 16px; }
  .profile-body { gap: 16px; }
  .sidebar {
    width: 300px;
    padding-right: 22px;
    padding-left: 22px;
  }
  .sidebar-name { font-size: 18px; }
}

@media (max-width: 640px) {
  .profile-area { padding: 0 24px; }
  .topnav__inner { padding: 0 10px; }
  .topnav__links,
  .topnav__right { display: none; }
  .topnav__center { padding: 0 0 0 12px; }
  .profile-body { flex-direction: column; }
  .main-content { width: 100%; }
  .sidebar {
    width: 100%;
    margin-top: -132px;
    padding: 28px 22px 32px;
  }
  .company-logo {
    width: 104px;
    height: 104px;
  }
  .sidebar-name { font-size: 19px; }
  .company-slogan,
  .service-list { font-size: 15px; }
  .site-footer {
    margin-top: 48px;
  }
  .site-footer__inner {
    display: grid;
    gap: 16px;
    padding: 22px 24px;
  }
  .site-footer__brand {
    min-width: 0;
  }
  .site-footer__contact {
    justify-content: flex-start;
    text-align: left;
  }
  .site-footer__contact span {
    white-space: normal;
  }
}
