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

:root {
  --black: #111;
  --gray: #888;
  --light: #f5f5f5;
  --border: #e0e0e0;
}

body.lang-zh {
  font-family: "Noto Sans SC", "Noto Sans", sans-serif;
  font-weight: 300;
}
body.lang-en {
  font-family: "Noto Sans", "Noto Sans SC", sans-serif;
  font-weight: 300;
}
body {
  background: #fff;
  color: var(--black);
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 24px;
}

.card {
  max-width: 480px;
  width: 100%;
}

body.lang-en .name,
body.lang-en .modal-header h3 {
  font-family: "Noto Serif", "Noto Serif SC", serif;
}
.name {
  font-family: "Noto Serif SC", "Noto Serif", serif;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.name-en {
  font-size: 0.85rem;
  color: var(--gray);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
body.lang-en .name-en {
  text-transform: none;
  letter-spacing: 0.06em;
}

.divider {
  width: 32px;
  height: 1px;
  background: var(--black);
  margin-bottom: 28px;
}

.bio {
  font-size: 0.92rem;
  line-height: 1.9;
  color: #333;
  margin-bottom: 40px;
}

.bio .tag {
  display: inline-block;
  font-size: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 2px 8px;
  margin: 0 2px;
  color: var(--gray);
  white-space: nowrap;
}

.section-block {
  margin-bottom: 40px;
}

.section-title {
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  color: #333;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 14px;
}

.simple-list,
.article-list {
  list-style: disc;
  padding-left: 1.25em;
  font-size: 0.9rem;
  line-height: 1.85;
  color: #333;
}

.simple-list li,
.article-list li {
  margin-bottom: 6px;
}

.simple-list li:last-child,
.article-list li:last-child {
  margin-bottom: 0;
}

.simple-list a,
.article-list a {
  color: var(--black);
  text-decoration: underline;
  text-decoration-color: #ccc;
  text-underline-offset: 2px;
  transition: text-decoration-color 0.15s;
}

.simple-list a:hover,
.article-list a:hover {
  text-decoration-color: var(--black);
}

.simple-list .item-desc {
  color: var(--gray);
}

.article-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.article-list a {
  min-width: 0;
}

.article-date {
  font-size: 0.8rem;
  color: var(--gray);
  flex-shrink: 0;
  white-space: nowrap;
}

.section-more {
  display: inline-block;
  margin-top: 10px;
  margin-left: 1.25em;
  font-size: 0.9rem;
  font-weight: inherit;
  color: var(--black);
  text-decoration: underline;
  text-decoration-color: #ccc;
  text-underline-offset: 2px;
  transition: text-decoration-color 0.15s;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  padding: 0;
}

.section-more:hover {
  text-decoration-color: var(--black);
}

.links {
  display: flex;
  flex-direction: column;
}

#section-follow .links {
  border-top: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 20px;
  row-gap: 2px;
}

#section-follow .link-item {
  padding: 5px 0;
  gap: 6px;
  border-bottom: none;
  min-width: 0;
}

#section-follow .link-item + .link-item {
  border-top: none;
}

#section-follow .link-icon {
  width: 20px;
  height: 20px;
}

#section-follow .link-icon svg,
#section-follow .link-icon img {
  width: 13px;
  height: 13px;
}

#section-follow .link-item > div:not(.link-icon) {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 4px;
  min-width: 0;
  flex: 1;
}

#section-follow .link-label {
  font-size: 0.82rem;
}

#section-follow .link-sub {
  font-size: 0.72rem;
  margin-top: 0;
  line-height: 1.5;
}

#section-follow .link-sub::before {
  content: "·";
  margin-right: 4px;
  color: var(--border);
}

.link-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--black);
  transition: opacity 0.15s;
  cursor: pointer;
}
button.link-item {
  width: 100%;
  border: none;
  background: none;
  font: inherit;
  text-align: left;
}
.link-item:hover {
  opacity: 0.45;
}

.link-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.link-icon svg {
  width: 18px;
  height: 18px;
  fill: var(--black);
}
.link-icon img {
  width: 18px;
  height: 18px;
  display: block;
  /* 将平台官方图标统一为单色，保持全站极简风格 */
  filter: grayscale(1) brightness(0);
  -webkit-filter: grayscale(1) brightness(0);
}

.link-label {
  font-size: 0.88rem;
  font-weight: 400;
}
.link-sub {
  font-size: 0.78rem;
  color: var(--gray);
  margin-top: 1px;
}

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 100;
  align-items: center;
  justify-content: center;
}
.modal-overlay.active {
  display: flex;
}

.modal {
  background: #fff;
  padding: 20px 20px 24px;
  max-width: 280px;
  width: 90%;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}

.modal-header-text {
  flex: 1;
  min-width: 0;
  padding-right: 12px;
}

.modal-header h3 {
  font-family: "Noto Serif SC", "Noto Serif", serif;
  font-size: 0.95rem;
  font-weight: 600;
}

.modal-hint {
  font-size: 0.68rem;
  font-weight: 300;
  color: var(--gray);
  line-height: 1.65;
  margin-top: 6px;
}

.modal-close-btn {
  width: 26px;
  height: 26px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: none;
  cursor: pointer;
  font-size: 0.8rem;
  color: var(--gray);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  transition: all 0.15s;
}
.modal-close-btn:hover {
  color: var(--black);
  border-color: var(--black);
}

.qr-placeholder {
  width: 100%;
  aspect-ratio: 1;
  border: 1px dashed var(--border);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--gray);
  line-height: 1.7;
  text-align: center;
}
.qr-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.wechat-id-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid var(--border);
  background: var(--light);
}

.wechat-id-label {
  font-size: 0.72rem;
  color: var(--gray);
  flex-shrink: 0;
}

.wechat-id-value {
  font-size: 0.85rem;
  flex: 1;
}

.copy-btn {
  font-size: 0.72rem;
  color: var(--gray);
  cursor: pointer;
  background: none;
  border: 1px solid var(--border);
  padding: 3px 10px;
  font-family: inherit;
  white-space: nowrap;
  transition: all 0.15s;
  flex-shrink: 0;
}
.copy-btn:hover {
  color: var(--black);
  border-color: var(--black);
}
.copy-btn.copied {
  color: #333;
  border-color: #999;
}

.copy-toast {
  font-size: 0.72rem;
  color: var(--gray);
  margin-top: 10px;
  text-align: center;
  height: 14px;
}

.modal-brand-icon {
  width: 100%;
  aspect-ratio: 1;
  border: 1px dashed var(--border);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
}
.modal-brand-icon svg {
  width: 48px;
  height: 48px;
}

.modal-external-link {
  display: block;
  margin-top: 14px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--black);
  text-decoration: underline;
  text-decoration-color: var(--gray);
  text-underline-offset: 2px;
  transition: text-decoration-color 0.15s;
}
.modal-external-link:hover {
  text-decoration-color: var(--black);
}

.site-footer {
  margin-top: 40px;
  font-size: 0.72rem;
  color: #ccc;
  letter-spacing: 0.05em;
  text-align: center;
}

/* Language switch — minimal, top-right */
.lang-switch a.active,
.lang-switch span.active {
  text-transform: none;
}

.lang-switch {
  position: fixed;
  top: 20px;
  right: 24px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--gray);
  user-select: none;
}
.lang-switch a {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  letter-spacing: inherit;
  text-transform: none;
  color: var(--gray);
  padding: 4px 0;
  text-decoration: none;
  transition: color 0.15s;
}
.lang-switch a:hover {
  color: var(--black);
}
.lang-switch .active {
  color: var(--black);
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.lang-switch .sep {
  color: var(--border);
  font-weight: 300;
  pointer-events: none;
}
@media (max-width: 480px) {
  .lang-switch {
    top: 16px;
    right: 16px;
  }
}
