:root {
  --primary: #18b9df;
  --accent: #38e5c4;
  --ink: #0f1c2e;
  --muted: #78889d;
  --line: #e5edf3;
  --page: #eef7f8;
  --safe: env(safe-area-inset-bottom);
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  min-height: 100%;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--accent) 18%, #eefdff) 0,
    rgba(238, 247, 248, 0.98) 360px,
    #edf4f5 100%
  );
}
body {
  padding-bottom: calc(78px + var(--safe));
}
button,
a,
input {
  font: inherit;
}
.app-shell {
  width: min(720px, 100%);
  min-height: 100vh;
  margin: auto;
}
.state-card {
  margin: 28px 16px;
  padding: 50px 20px;
  text-align: center;
  border-radius: 22px;
  background: #fff;
  color: var(--muted);
  box-shadow: 0 20px 60px rgba(26, 73, 91, 0.1);
}
#card {
  padding: 14px 13px 34px;
}
.profile-card {
  position: relative;
  overflow: hidden;
  min-height: 224px;
  padding: 25px 132px 20px 22px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 20px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.98),
    rgba(225, 244, 252, 0.9) 62%,
    color-mix(in srgb, var(--primary) 25%, #d8eef8)
  );
  background-size: cover;
  background-position: center;
  box-shadow: 0 16px 34px rgba(30, 82, 104, 0.2);
}
.profile-card:before,
.profile-card:after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.profile-card:before {
  width: 300px;
  height: 110px;
  right: -40px;
  bottom: -45px;
  border: 1px solid color-mix(in srgb, var(--primary) 28%, transparent);
  transform: rotate(-9deg);
  box-shadow: 0 -13px 45px color-mix(in srgb, var(--primary) 15%, transparent);
}
.profile-card:after {
  width: 230px;
  height: 78px;
  left: -60px;
  bottom: -25px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  transform: rotate(9deg);
}
.profile-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    125deg,
    transparent 0 36%,
    rgba(255, 255, 255, 0.68) 48%,
    transparent 61%
  );
  opacity: 0.45;
  pointer-events: none;
}
.identity,
.contact-list,
.avatar {
  position: relative;
  z-index: 2;
}
.identity h1 {
  margin: 0;
  font-size: 24px;
  letter-spacing: 0.5px;
}
.identity p {
  margin: 7px 0 4px;
  font-size: 14px;
}
.identity small {
  font-size: 13px;
}
.avatar {
  position: absolute;
  right: 24px;
  top: 28px;
  width: 88px;
  height: 100px;
  object-fit: cover;
  object-position: top center;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(21, 63, 90, 0.16);
}
.contact-list {
  display: grid;
  gap: 7px;
  margin-top: 25px;
}
.contact-list button,
.contact-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  text-align: left;
}
.contact-list i {
  display: grid;
  place-items: center;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  font-style: normal;
}
.contact-list span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}
.profile-actions {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}
.profile-actions.action-count-2 {
  grid-template-columns: 1fr 1fr;
}
.profile-actions button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 54px;
  border: 0;
  border-radius: 27px;
  font-size: 17px;
  font-weight: 720;
  box-shadow: 0 12px 25px color-mix(in srgb, var(--primary) 17%, transparent);
}
.profile-actions i {
  font-style: normal;
  font-size: 18px;
}
.action-share {
  background: linear-gradient(100deg, var(--accent), var(--primary));
  color: #fff;
}
.action-phone {
  background: #fff;
  color: var(--primary);
  border: 1px solid color-mix(in srgb, var(--primary) 18%, #e8eef3) !important;
}
.stats-card,
.content-card {
  margin-top: 18px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(30, 70, 90, 0.055);
}
.stats-card {
  overflow: hidden;
  background: color-mix(in srgb, var(--primary) 9%, #fff);
}
.stats-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 6px;
}
.stats-title small {
  padding: 4px 8px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--primary) 18%, #fff);
  color: #52748a;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 7px 8px 16px;
}
.stats-grid div {
  text-align: center;
}
.stats-grid strong,
.stats-grid span {
  display: block;
}
.stats-grid strong {
  font-size: 20px;
}
.stats-grid span {
  margin-top: 5px;
  font-size: 11px;
  color: #617588;
}
.personal-section {
  padding: 16px;
}
.personal-section h2,
.section-head h2 {
  font-size: 17px;
  margin: 0;
}
.personal-section p {
  margin: 10px 0 0;
  line-height: 1.8;
  font-size: 14px;
  white-space: pre-line;
}
.module-section,
.company-section {
  padding: 15px 10px 4px;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2px 12px 0;
}
.section-head a {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--primary);
  font-size: 13px;
  text-decoration: none;
  padding: 4px 2px;
}
.section-head a b {
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
}
.article-list {
  display: grid;
}
.article-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 134px;
  gap: 13px;
  width: 100%;
  padding: 13px 0;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  color: inherit;
  text-decoration: none;
  text-align: left;
}
.article-row:first-child {
  border-top: 0;
}
.article-copy {
  min-width: 0;
}
.article-copy h3 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.45;
  font-weight: 600;
}
.item-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}
.item-meta em {
  display: inline-block;
  padding: 3px 6px;
  border-radius: 3px;
  background: color-mix(in srgb, var(--primary) 10%, #f7fbff);
  color: var(--primary);
  font-size: 11px;
  font-style: normal;
}
.item-meta small {
  color: #8b99a9;
  font-size: 11px;
}
.article-copy p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin: 8px 0 0;
  color: #8b99aa;
  font-size: 12px;
  line-height: 1.55;
}
.article-row > img {
  width: 134px;
  height: 95px;
  border-radius: 12px;
  object-fit: cover;
  background: #eaf1f4;
}
.video-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
  padding-bottom: 12px;
}
.video-row {
  display: block;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  text-align: left;
}
.video-cover {
  position: relative;
}
.video-cover img {
  display: block;
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}
.video-cover span {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding-left: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--primary);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
}
.video-row h3 {
  margin: 10px 10px 12px;
  font-size: 14px;
}
.company-section {
  padding-bottom: 16px;
}
.company-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border-radius: 13px;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--primary) 8%, #fff),
    #fff
  );
  border: 1px solid var(--line);
}
.company-brand img {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  object-fit: cover;
  background: #fff;
}
.company-brand b,
.company-brand small {
  display: block;
}
.company-brand small {
  margin-top: 5px;
  color: var(--muted);
}
.company-intro {
  font-size: 14px;
  line-height: 1.85;
  white-space: pre-line;
}
.clamp-intro {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  overflow: hidden;
}
.company-info {
  display: grid;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.company-info div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px;
  font-size: 12px;
}
.company-info span {
  color: var(--muted);
}
.company-info b,
.company-info button {
  font-weight: 500;
  text-align: left;
}
.company-info button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--primary);
}
.brand-footer {
  text-align: center;
  padding: 30px 0 8px;
  color: #a1b1bb;
}
.brand-footer img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  opacity: 0.55;
}
.brand-footer p {
  margin: 6px 0 10px;
  font-size: 13px;
}
.brand-footer small {
  letter-spacing: 1px;
}
.bottom-nav {
  position: fixed;
  z-index: 30;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(720px, 100%);
  height: calc(68px + var(--safe));
  padding: 7px 13px calc(7px + var(--safe));
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 -6px 25px rgba(16, 44, 62, 0.1);
  backdrop-filter: blur(14px);
}
.bottom-nav button {
  display: flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 50px;
  padding: 0 8px;
  border: 0;
  border-radius: 24px;
  background: transparent;
  color: #172033;
  font-size: 14px;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bottom-nav .nav-item {
  flex-direction: column;
  gap: 2px;
  color: var(--primary);
}
.bottom-nav .nav-label {
  display: block;
  margin: 0;
  color: #3d4653;
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
}
.bottom-nav .nav-line-icon {
  position: relative;
  display: block;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  color: inherit;
  box-sizing: border-box;
}
.bottom-nav .nav-home-icon .home-roof {
  position: absolute;
  left: 4px;
  top: 1px;
  width: 14px;
  height: 14px;
  border-left: 2px solid currentColor;
  border-top: 2px solid currentColor;
  border-radius: 1px;
  transform: rotate(45deg);
  box-sizing: border-box;
}
.bottom-nav .nav-home-icon .home-body {
  position: absolute;
  left: 4px;
  bottom: 1px;
  width: 14px;
  height: 12px;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 0 0 2px 2px;
  background: #fff;
  box-sizing: border-box;
}
.bottom-nav .nav-home-icon .home-door {
  position: absolute;
  left: 4px;
  bottom: -1px;
  width: 5px;
  height: 7px;
  border: 1.5px solid currentColor;
  border-bottom: 0;
  box-sizing: border-box;
}
.bottom-nav .nav-phone-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}
.bottom-nav .nav-phone-icon .phone-device {
  position: relative;
  width: 13px;
  height: 21px;
  border: 2px solid currentColor;
  border-radius: 4px;
  box-sizing: border-box;
}
.bottom-nav .nav-phone-icon .phone-speaker {
  position: absolute;
  left: 50%;
  top: 2px;
  width: 5px;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transform: translateX(-50%);
}
.bottom-nav .nav-phone-icon .phone-dot {
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: currentColor;
  transform: translateX(-50%);
}
.bottom-nav .nav-share {
  flex: 2 1 0;
  flex-direction: row;
  background: linear-gradient(100deg, var(--accent), var(--primary));
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}
.bottom-nav .nav-share span {
  display: inline;
  margin: 0;
  font-size: 16px;
  white-space: nowrap;
}
.modal {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(9, 20, 31, 0.72);
}
.modal[hidden] {
  display: none;
}
.modal-box {
  width: min(500px, 100%);
  padding: 16px;
  border-radius: 18px;
  background: #fff;
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.modal-head h3 {
  margin: 0;
}
.close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #eef2f4;
}
.modal .qr,
.modal video {
  width: 100%;
  max-height: 68vh;
  border-radius: 12px;
}
.modal-tip,
.address-text {
  text-align: center;
  color: var(--muted);
  line-height: 1.7;
}
.wechat-id,
.share-link {
  padding: 10px;
  border-radius: 10px;
  background: #f4f7f9;
  text-align: center;
  word-break: break-all;
}
.toast {
  position: fixed;
  z-index: 120;
  left: 50%;
  bottom: 95px;
  transform: translate(-50%, 18px);
  opacity: 0;
  padding: 10px 15px;
  border-radius: 10px;
  background: #17212b;
  color: #fff;
  transition: 0.2s;
  pointer-events: none;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
@media (max-width: 390px) {
  .profile-card {
    padding-right: 118px;
  }
  .avatar {
    right: 18px;
    width: 82px;
  }
  .stats-grid strong {
    font-size: 18px;
  }
  .stats-grid span {
    font-size: 10px;
  }
  .article-row {
    grid-template-columns: minmax(0, 1fr) 116px;
  }
  .article-row > img {
    width: 116px;
    height: 88px;
  }
  .article-copy h3 {
    font-size: 16px;
  }
  .profile-actions button {
    font-size: 15px;
  }
}
@media (max-width: 340px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .video-list {
    grid-template-columns: 1fr;
  }
  .profile-card {
    padding-right: 22px;
    padding-top: 130px;
  }
  .avatar {
    left: 22px;
    top: 22px;
  }
  .identity {
    position: absolute;
    left: 125px;
    top: 28px;
  }
  .profile-actions.action-count-2 {
    grid-template-columns: 1fr;
  }
  .bottom-nav {
    gap: 6px;
    padding-left: 9px;
    padding-right: 9px;
  }
  .bottom-nav button {
    padding: 0 4px;
    font-size: 13px;
  }
  .bottom-nav .nav-share span {
    font-size: 15px;
  }
}
