:root {
  --bg: #f8f7f6;
  --card: #ffffff;
  --ink: #111111;
  --muted: #8b8680;
  --line: #ece8e3;
  --soft: #f3f1ee;
  --accent: #e84b3a;
  --radius: 22px;
  --font: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.top {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 8px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.nav {
  display: flex;
  gap: 28px;
  font-size: 15px;
  font-weight: 500;
}

.nav a {
  position: relative;
  color: var(--ink);
}

.nav a.is-active::after,
.nav a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--ink);
}

.hero {
  width: min(1120px, calc(100% - 40px));
  margin: 12px auto 36px;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 32px;
  align-items: center;
  min-height: 420px;
}

.hero__copy h1 {
  margin: 0 0 18px;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.18;
}

.hero__copy p {
  margin: 0 0 28px;
  max-width: 22em;
  color: #5f5a55;
  font-size: 16px;
  line-height: 1.8;
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  padding: 12px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: default;
}

.btn-pill:hover {
  opacity: 0.88;
}

.hero__art img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.panel {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto 22px;
  padding: 28px 32px 32px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.panel__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.panel__head h2,
.about h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
}

.more {
  color: var(--muted);
  font-size: 14px;
}

.more:hover {
  color: var(--ink);
}

.tools {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.tool {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--soft);
}

.tool:hover {
  border-color: #ddd8d2;
}

.tool__icon {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
}

.tool__icon svg {
  width: 64px;
  height: 64px;
}

.tool strong,
.card h3 {
  display: block;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}

.tool em {
  display: block;
  margin-top: 4px;
  font-style: normal;
  color: var(--muted);
  font-size: 13px;
}

.accounts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.account {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.account:hover {
  border-color: #ddd8d2;
}

.account__avatar {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--soft);
}

.account__avatar--selfie {
  object-position: center 18%;
}

.account__name {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1.5px;
  cursor: pointer;
}

.account:hover .account__name,
.account__choice[open] .account__name {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

.account__choice {
  position: relative;
}

.account__choice summary {
  list-style: none;
}

.account__choice summary::-webkit-details-marker {
  display: none;
}

.account__menu {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  z-index: 2;
  display: flex;
  flex-direction: column;
  min-width: 120px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(17, 17, 17, 0.08);
}

.account__menu a {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
}

.account__menu a:hover {
  background: var(--soft);
}

.cards {
  display: grid;
  gap: 16px;
}

.cards--4 {
  grid-template-columns: repeat(4, 1fr);
}

.cards--articles {
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.card {
  position: relative;
  display: block;
  padding: 18px 16px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  min-height: 210px;
}

.card:hover {
  border-color: #ddd8d2;
}

.card--article {
  min-height: 0;
  padding: 10px 10px 16px;
  overflow: hidden;
}

.card__banner {
  width: 100%;
  aspect-ratio: 2.4 / 1;
  object-fit: cover;
  object-position: center;
  margin-bottom: 12px;
  border-radius: 12px;
}

.card--article h3 {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.45;
}

.card--article p {
  margin: 0;
  color: #8b8680;
  font-size: 13px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card__icon {
  height: 88px;
  display: grid;
  place-items: center;
  margin-bottom: 8px;
}

.card__icon svg {
  width: 72px;
  height: 72px;
}

.card h3 {
  margin: 0 0 10px;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.card__go {
  position: absolute;
  right: 14px;
  bottom: 12px;
  color: #bbb;
  font-size: 14px;
}

.card--video {
  display: block;
  min-height: 0;
  padding: 10px 10px 16px;
}

.card--video:hover {
  border-color: #ddd8d2;
}

.thumb {
  position: relative;
  height: auto;
  aspect-ratio: 3 / 4;
  margin-bottom: 12px;
  overflow: hidden;
  border-radius: 12px;
  background: var(--soft);
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play {
  position: absolute;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
  padding-left: 2px;
}

.about-body .top {
  width: min(1120px, calc(100% - 48px));
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.about-wrap {
  width: min(1120px, calc(100% - 48px));
  min-height: calc(100vh - 240px);
  margin: 0 auto;
  padding: 48px 0 80px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.about-copy h1 {
  position: relative;
  margin: 0 0 22px;
  padding-left: 8px;
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.15;
}

.about-star {
  position: absolute;
  top: -10px;
  left: -18px;
  font-size: 16px;
  color: var(--ink);
}

.about-lead {
  margin: 0 0 22px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.7;
  color: var(--ink);
}

.about-copy p {
  margin: 0 0 22px;
  max-width: 34em;
  color: #2d2a27;
  font-size: 16px;
  line-height: 1.9;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.about-art img {
  width: 100%;
  height: auto;
  display: block;
}

.foot {
  width: min(1120px, calc(100% - 48px));
  margin: 48px auto 0;
  padding: 28px 0 40px;
  border-top: 1px solid #e4e0db;
  text-align: center;
  color: #b4aea8;
  font-size: 12px;
  line-height: 1.8;
  letter-spacing: 0.02em;
}

.foot p {
  margin: 0 0 4px;
}

.foot a,
.foot__contact,
.foot__mail {
  color: #b4aea8;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.foot a:hover,
.foot__contact:hover,
.foot__mail:hover {
  color: #8c8680;
}

.foot__sep {
  margin: 0 8px;
  color: #ccc8c3;
}

.beian-gongan {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.beian-gongan img {
  width: 10px;
  height: 11px;
  flex: 0 0 auto;
  opacity: 0.75;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    margin-bottom: 24px;
  }

  .hero__art {
    display: none;
  }

  .hero__copy p {
    max-width: none;
  }

  .tools,
  .accounts,
  .cards--4,
  .cards--articles {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .top,
  .hero,
  .panel,
  .about-body .top,
  .about-wrap,
  .foot {
    width: calc(100% - 24px);
  }

  .about-wrap {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 28px;
    gap: 20px;
  }

  .about-copy h1 {
    font-size: 36px;
  }

  .about-lead {
    font-size: 18px;
  }

  .about-art {
    max-width: 320px;
    margin: 0 auto;
  }

  .top {
    padding-top: 18px;
  }

  .nav {
    gap: 16px;
    font-size: 14px;
  }

  .hero__copy h1 {
    font-size: 36px;
  }

  .panel {
    padding: 22px 18px 20px;
  }

  .tools,
  .accounts,
  .cards--4,
  .cards--articles {
    grid-template-columns: 1fr;
  }

  .card,
  .card--video {
    min-height: 0;
  }
}
