:root {
  --bg: #f7f8f3;
  --surface: #ffffff;
  --ink: #17201d;
  --muted: #61706a;
  --line: #dfe5dd;
  --teal: #17776b;
  --teal-dark: #0d5048;
  --gold: #d7a83e;
  --rose: #b74b59;
  --green: #18a058;
  --shadow: 0 18px 60px rgba(15, 35, 30, 0.12);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  letter-spacing: 0;
}

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

button,
input,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 56px;
  padding: 8px clamp(18px, 4vw, 56px);
  background: rgba(247, 248, 243, 0.9);
  border-bottom: 1px solid rgba(23, 32, 29, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-logo,
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.brand-logo {
  object-fit: cover;
  box-shadow: 0 8px 22px rgba(15, 35, 30, 0.16);
}

.brand-mark {
  display: grid;
  place-items: center;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.1;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 26px);
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

.site-nav a,
.nav-button {
  border: 0;
  background: transparent;
  color: inherit;
  padding: 8px 0;
}

.site-nav a:hover,
.nav-button:hover {
  color: var(--ink);
}

.site-nav .nav-register {
  border-radius: 999px;
  padding: 8px 14px;
  color: #fff;
  background: var(--ink);
  box-shadow: 0 8px 20px rgba(15, 35, 30, 0.16);
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.site-nav .nav-register:hover {
  color: #fff;
  background: var(--teal-dark);
}

.hero-nav {
  position: relative;
  z-index: 2;
  grid-column: 1 / -1;
  align-self: start;
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3vw, 36px);
  width: min(100%, 980px);
  min-height: 84px;
  margin: -10px auto clamp(36px, 5vw, 68px);
  padding: 16px clamp(24px, 4vw, 48px);
  color: var(--muted);
  font-size: clamp(20px, 1.8vw, 28px);
  font-weight: 900;
  background: rgba(247, 248, 243, 0.88);
  border: 1px solid rgba(23, 32, 29, 0.08);
  border-radius: 16px;
  box-shadow: 0 18px 54px rgba(15, 35, 30, 0.1);
  backdrop-filter: blur(18px);
}

.hero-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: clamp(148px, 15vw, 230px);
  min-height: 54px;
  border-radius: 999px;
  padding: 12px clamp(24px, 3vw, 42px);
  color: var(--ink);
  background: #fff;
  white-space: nowrap;
  box-shadow: inset 0 0 0 1px rgba(23, 32, 29, 0.08);
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.hero-nav a:hover {
  transform: translateY(-1px);
  color: #fff;
  background: var(--teal);
  box-shadow: 0 14px 28px rgba(23, 119, 107, 0.2);
}

.hero-nav .nav-pill {
  color: #fff;
  background: var(--teal-dark);
  box-shadow: 0 14px 28px rgba(15, 80, 72, 0.22);
}

.hero-nav .nav-pill:hover {
  background: var(--teal);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(360px, 0.86fr) minmax(0, 1.14fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  min-height: min(calc(100svh - 118px), 820px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #eef3ef;
  padding: clamp(26px, 4vw, 46px) clamp(18px, 4vw, 56px) clamp(54px, 7vw, 92px);
}

.hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(620px, 54vw);
  height: 42%;
  background: linear-gradient(135deg, rgba(23, 119, 107, 0.18), rgba(215, 168, 62, 0.12));
  clip-path: polygon(24% 0, 100% 0, 100% 100%, 0 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(620px, 100%);
  margin: 0;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  margin: 16px 0 18px;
  font-size: clamp(48px, 8vw, 96px);
  line-height: 0.96;
}

.hero h1 span {
  display: block;
}

.hero-lede {
  max-width: 600px;
  margin: 0;
  color: #33423d;
  font-size: clamp(18px, 2.4vw, 25px);
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 640px;
  margin-top: 26px;
}

.hero-highlight-title {
  grid-column: 1 / -1;
  margin: 0 0 2px;
  color: var(--teal-dark);
  font-size: 14px;
  font-weight: 900;
}

.hero-highlight {
  display: grid;
  gap: 7px;
  min-height: 104px;
  padding: 14px 15px;
  border: 1px solid rgba(23, 119, 107, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 28px rgba(15, 35, 30, 0.08);
}

.hero-highlight span {
  width: fit-content;
  border-radius: 999px;
  background: rgba(23, 119, 107, 0.1);
  color: var(--teal-dark);
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 900;
}

.hero-highlight strong {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.42;
}

.highlight-free {
  border-color: rgba(215, 168, 62, 0.55);
  background: #fff9e8;
}

.highlight-free span {
  background: var(--gold);
  color: #1e1a0d;
}

.highlight-free strong {
  font-size: 17px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0 20px;
  font-weight: 800;
}

.primary-action {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 10px 26px rgba(23, 119, 107, 0.22);
}

.primary-action:hover {
  background: var(--teal-dark);
}

.primary-action:disabled {
  cursor: wait;
  background: #7b8b84;
  box-shadow: none;
}

.secondary-action {
  background: rgba(255, 255, 255, 0.78);
  border-color: var(--line);
  color: var(--ink);
}

.button-reset {
  box-shadow: none;
}

.download-note,
.muted,
.form-message {
  color: var(--muted);
}

.download-note {
  min-height: 24px;
  margin: 14px 0 0;
  font-size: 14px;
}

.hero-link-board {
  max-width: 960px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(23, 119, 107, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 10px 28px rgba(15, 35, 30, 0.07);
}

.hero-link-board-title {
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 900;
}

.hero-link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.hero-text-link {
  display: grid;
  gap: 4px;
  min-width: min(260px, 100%);
  max-width: 360px;
  padding: 11px 12px;
  border: 1px solid rgba(23, 119, 107, 0.18);
  border-radius: 8px;
  background: rgba(247, 248, 243, 0.88);
}

.hero-text-link:hover {
  border-color: rgba(23, 119, 107, 0.48);
  background: #fff;
}

.hero-text-link strong {
  color: var(--teal-dark);
  font-size: 15px;
}

.hero-text-link span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.hero-showcase {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.showcase-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(23, 32, 29, 0.14);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.showcase-primary {
  transform: translateY(-20px);
}

.showcase-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: left top;
}

.showcase-primary img {
  object-fit: contain;
  background: #f7f8f3;
}

.section {
  padding: clamp(64px, 9vw, 110px) clamp(18px, 4vw, 56px);
}

.section-inner,
.footer-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.intro-strip {
  padding-top: 46px;
  padding-bottom: 46px;
  background: var(--ink);
  color: #fff;
}

.intro-strip .section-kicker {
  color: #88d7ca;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 32px;
  align-items: center;
}

.intro-grid h2,
.section-heading h2,
.site-footer h2,
.admin-title h1,
.admin-panel h1 {
  margin: 10px 0 0;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.15;
}

.intro-grid p,
.section-heading p,
.site-footer p,
.admin-title p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 17px;
  line-height: 1.8;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading p {
  margin-top: 14px;
  color: var(--muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.feature-card {
  min-height: 232px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(23, 32, 29, 0.03);
}

.feature-card:nth-child(2n) {
  border-top-color: rgba(215, 168, 62, 0.65);
}

.feature-card:nth-child(3n) {
  border-top-color: rgba(183, 75, 89, 0.55);
}

.feature-index {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

.feature-card h3 {
  margin: 18px 0 10px;
  font-size: 20px;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.resource-section {
  background: #edf2ea;
}

.resource-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.resource-list {
  display: grid;
  gap: 12px;
}

.resource-item {
  display: grid;
  gap: 8px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.resource-item h3 {
  margin: 0;
  font-size: 19px;
}

.resource-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.resource-item a {
  width: fit-content;
  color: var(--teal);
  font-weight: 800;
}

.site-footer {
  padding: clamp(58px, 8vw, 96px) clamp(18px, 4vw, 56px);
  background: #111816;
  color: #fff;
}

.site-footer .section-kicker {
  color: #88d7ca;
}

.site-footer p {
  margin-top: 14px;
}

.footer-email {
  display: inline-flex;
  margin-top: 22px;
  color: #88d7ca;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.footer-email:hover {
  color: #ffffff;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(240px, 0.6fr) minmax(0, 1.4fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.social-item {
  grid-column: span 2;
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.social-item img {
  width: 100%;
  height: 190px;
  object-fit: contain;
  border-radius: 6px;
  background: #fff;
}

.social-account-card img {
  height: 220px;
}

.wechat-account-card {
  grid-column: span 4;
}

.wechat-account-card img {
  height: 220px;
}

.qr-item img {
  height: 190px;
  padding: 10px;
}

.social-item figcaption {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
}

.device-touch .primary-action,
.device-touch .secondary-action {
  min-height: 52px;
}

.device-touch .social-item {
  padding: 14px;
}

.device-mobile .footer-inner {
  gap: 30px;
}

.device-mobile .social-grid {
  grid-template-columns: 1fr;
}

.device-mobile .social-item,
.device-mobile .wechat-account-card {
  grid-column: 1;
}

.admin-page {
  min-height: 100vh;
}

.admin-shell {
  width: min(1080px, calc(100% - 36px));
  margin: 46px auto 96px;
}

.admin-panel,
.admin-workspace {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: clamp(22px, 4vw, 36px);
  box-shadow: var(--shadow);
}

.admin-panel {
  max-width: 480px;
  margin: 0 auto;
}

.admin-title {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 26px;
}

.admin-title p {
  max-width: 420px;
  color: var(--muted);
}

.admin-tabs {
  display: inline-flex;
  gap: 6px;
  margin: 0 0 22px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f5f8f4;
}

.admin-tab {
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  padding: 0 16px;
  font-weight: 900;
}

.admin-tab:hover,
.admin-tab.is-active {
  color: #fff;
  background: var(--teal-dark);
}

.admin-view {
  display: grid;
  gap: 22px;
}

.admin-view[hidden],
.page-detail-slot[hidden] {
  display: none;
}

.software-manager {
  display: grid;
  gap: 18px;
  margin-bottom: 24px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f5f8f4;
}

.software-manager h2,
.upload-card h3 {
  margin: 8px 0 0;
}

.upload-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.upload-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.link-manager {
  display: grid;
  gap: 18px;
  margin-top: 22px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafbf8;
}

.link-manager-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
}

.link-manager-header h2,
.link-manager-header p {
  margin: 0;
}

.link-manager-header h2 {
  margin-top: 8px;
}

.link-manager-header p {
  margin-top: 8px;
}

.link-rows {
  display: grid;
  gap: 12px;
}

.link-row-editor {
  display: grid;
  grid-template-columns: minmax(160px, 0.8fr) minmax(220px, 1fr) minmax(220px, 1.2fr) auto;
  gap: 12px;
  align-items: end;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.link-row-editor label {
  display: grid;
  gap: 7px;
  color: #35443f;
  font-weight: 800;
}

.link-row-editor input,
.link-row-editor textarea {
  width: 100%;
  border: 1px solid #cfd8d2;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 11px 12px;
  outline: none;
}

.link-row-editor textarea {
  min-height: 46px;
  resize: vertical;
}

.link-row-editor input:focus,
.link-row-editor textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(23, 119, 107, 0.12);
}

.upload-card h3,
.upload-card p {
  margin: 0;
}

.upload-card h3 {
  margin-bottom: 8px;
}

.upload-card input[type="file"] {
  width: 100%;
  border: 1px dashed #b9c8c1;
  border-radius: 8px;
  background: #fbfcfa;
  padding: 12px;
}

.upload-progress {
  width: 100%;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #dbe5df;
}

.upload-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  transition: width 0.18s ease;
}

.admin-form {
  display: grid;
  gap: 16px;
}

.link-editor {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafbf8;
}

.admin-form label {
  display: grid;
  gap: 8px;
  color: #35443f;
  font-weight: 800;
}

.admin-form input,
.admin-form textarea {
  width: 100%;
  border: 1px solid #cfd8d2;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 12px 13px;
  outline: none;
}

.admin-form input:focus,
.admin-form textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(23, 119, 107, 0.12);
}

.wide-field,
.form-actions,
.form-message,
.admin-list {
  grid-column: 1 / -1;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.admin-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.admin-link-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-link-row h3,
.admin-link-row p {
  margin: 0;
}

.admin-link-row p {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.6;
}

.row-actions {
  display: flex;
  gap: 10px;
}

.text-button,
.danger-button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 9px 12px;
  color: var(--ink);
  font-weight: 800;
}

.danger-button {
  border-color: rgba(183, 75, 89, 0.45);
  color: var(--rose);
}

.profile-manager {
  display: grid;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafbf8;
}

.profile-manager-header,
.profile-section-head,
.profile-page-main,
.record-head,
.profile-list-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.profile-manager-header h2,
.profile-manager-header p,
.profile-section-head h3,
.profile-section-head p {
  margin: 0;
}

.profile-manager-header h2,
.profile-section-head h3 {
  margin-top: 8px;
}

.profile-dashboard {
  display: grid;
  grid-template-columns: minmax(260px, 0.36fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.profile-list-panel,
.profile-detail-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.profile-list-panel {
  position: sticky;
  top: 78px;
  overflow: hidden;
}

.profile-list-meta {
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.profile-list-meta strong,
.profile-list-meta span {
  display: block;
}

.profile-list-meta span {
  color: var(--muted);
  font-size: 12px;
}

.profile-list {
  display: grid;
  max-height: 70vh;
  overflow: auto;
}

.profile-list-item {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  border: 0;
  border-bottom: 1px solid #eef2ed;
  background: #fff;
  color: var(--ink);
  padding: 12px 14px;
  text-align: left;
}

.profile-list-item:hover,
.profile-list-item.is-active {
  background: #eef6f3;
}

.profile-rank {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #edf2ea;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 900;
}

.profile-list-main {
  min-width: 0;
}

.profile-list-main strong,
.profile-list-main small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-list-main small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.profile-source-badge {
  display: inline-flex;
  width: fit-content;
  margin-top: 6px;
  border-radius: 999px;
  background: rgba(23, 119, 107, 0.1);
  color: var(--teal-dark);
  padding: 3px 8px;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.profile-score {
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 900;
}

.profile-detail-panel {
  min-height: 520px;
  padding: 18px;
}

.empty-profile-state,
.profile-loading,
.profile-empty,
.profile-error {
  padding: 22px;
  border: 1px dashed #cbd8d2;
  border-radius: 8px;
  background: #fbfcfa;
}

.empty-profile-state h3 {
  margin: 10px 0 8px;
}

.profile-error {
  border-color: rgba(183, 75, 89, 0.35);
  color: var(--rose);
  background: #fff8f8;
}

.profile-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  margin-bottom: 16px;
}

.profile-hero h2,
.profile-hero p {
  margin: 0;
}

.profile-hero h2 {
  margin-top: 8px;
  font-size: clamp(24px, 3vw, 36px);
}

.profile-hero p {
  margin-top: 6px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.profile-source-note {
  min-width: 150px;
  padding: 14px;
  border: 1px solid rgba(23, 119, 107, 0.18);
  border-radius: 8px;
  background: #eef6f3;
}

.profile-source-note strong,
.profile-source-note span,
.profile-source-note small {
  display: block;
}

.profile-source-note strong {
  color: var(--teal-dark);
  font-size: 28px;
  line-height: 1;
}

.profile-source-note span {
  margin-top: 6px;
  font-weight: 900;
}

.profile-source-note small {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.5;
}

.profile-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.profile-chips span,
.record-meta span,
.profile-page-stats span {
  border-radius: 999px;
  background: #edf2ea;
  color: #34443e;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 800;
}

.profile-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.profile-metric {
  min-height: 94px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.profile-metric strong,
.profile-metric span,
.profile-metric small {
  display: block;
}

.profile-metric strong {
  color: var(--teal-dark);
  font-size: 22px;
}

.profile-metric span {
  margin-top: 6px;
  font-weight: 900;
}

.profile-metric small {
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.4;
}

.profile-section {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.daily-bars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18px, 1fr));
  align-items: end;
  gap: 6px;
  min-height: 190px;
  padding: 14px 10px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.daily-bar {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 8px;
  align-items: end;
  min-width: 0;
  height: 160px;
}

.daily-bar span {
  display: block;
  width: 100%;
  min-height: 6px;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, var(--teal), var(--gold));
}

.daily-bar small {
  color: var(--muted);
  font-size: 10px;
  text-align: center;
  white-space: nowrap;
}

.profile-page-list {
  display: grid;
  gap: 12px;
}

.profile-page-row {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.profile-page-main strong,
.profile-page-main small {
  display: block;
}

.profile-page-main strong {
  overflow-wrap: anywhere;
}

.profile-page-main small {
  margin-top: 4px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.page-detail-button {
  min-height: 36px;
  flex: 0 0 auto;
  padding: 0 12px;
}

.page-score-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e6ece8;
}

.page-score-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
}

.profile-page-stats,
.record-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.page-detail-slot {
  display: grid;
  gap: 12px;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid #edf2ef;
}

.page-detail-content {
  display: grid;
  gap: 12px;
}

.profile-record-group {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.profile-record-group summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  cursor: pointer;
  color: var(--teal-dark);
  font-weight: 900;
}

.profile-record-group summary span {
  color: var(--muted);
}

.profile-record-list {
  display: grid;
  gap: 10px;
  padding: 0 12px 12px;
}

.profile-record {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid #e7ede8;
  border-radius: 8px;
  background: #fff;
}

.profile-record p {
  margin: 0;
  color: #34443f;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.record-head strong {
  overflow-wrap: anywhere;
}

.record-head span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
}

.profile-record pre {
  max-height: 260px;
  overflow: auto;
  margin: 0;
  border-radius: 8px;
  background: #101815;
  color: #e8f1ec;
  padding: 12px;
  white-space: pre-wrap;
  word-break: break-word;
}

.qa-block {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.qa-block b {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #edf2ea;
  color: var(--teal-dark);
  font-size: 12px;
}

@media (max-width: 980px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .resource-layout,
  .footer-inner,
  .intro-grid {
    grid-template-columns: 1fr;
  }

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

  .wechat-account-card {
    grid-column: span 4;
  }

  .admin-title {
    display: grid;
  }

  .upload-grid {
    grid-template-columns: 1fr;
  }

  .link-manager-header {
    display: grid;
  }

  .link-row-editor {
    grid-template-columns: 1fr;
  }

  .profile-dashboard,
  .profile-hero {
    grid-template-columns: 1fr;
  }

  .profile-list-panel {
    position: static;
  }

  .profile-list {
    max-height: 360px;
  }

  .profile-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .site-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }


  .hero-nav {
    gap: 10px;
    min-height: 72px;
    margin: 0 4px 24px;
    padding: 12px;
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: center;
    font-size: 18px;
  }

  .hero-nav a {
    flex: 0 0 auto;
    min-width: 128px;
    min-height: 48px;
  }

  .hero {
    min-height: min(86svh, 760px);
    grid-template-columns: 1fr;
    padding-top: 24px;
    padding-bottom: 56px;
  }

  .hero-content {
    width: auto;
    margin-right: 14px;
    margin-left: 14px;
  }

  .hero-lede {
    max-width: 300px;
    font-size: 16px;
    word-break: break-all;
  }

  .hero-highlights {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin-top: 22px;
  }

  .hero-highlight {
    min-height: 0;
  }

  .hero-link-board {
    max-width: 360px;
  }

  .hero-link-list {
    display: grid;
  }

  .hero-text-link {
    max-width: none;
  }

  .hero h1 {
    font-size: clamp(42px, 13vw, 54px);
  }

  .intro-grid h2,
  .section-heading h2,
  .site-footer h2 {
    font-size: clamp(26px, 8vw, 34px);
    overflow-wrap: anywhere;
    word-break: break-all;
  }

  .intro-grid p,
  .section-heading p,
  .feature-card p,
  .site-footer p {
    overflow-wrap: anywhere;
    word-break: break-all;
  }

  .hero-showcase {
    grid-template-columns: 1fr;
    margin: 0 4px;
  }

  .showcase-primary {
    transform: none;
  }

  .feature-grid,
  .social-grid,
  .link-editor {
    grid-template-columns: 1fr;
  }

  .social-item,
  .wechat-account-card {
    grid-column: 1;
  }

  .social-item img,
  .social-account-card img,
  .wechat-account-card img {
    height: auto;
    max-height: 360px;
  }

  .feature-card {
    min-height: 0;
  }

  .admin-link-row {
    grid-template-columns: 1fr;
  }

  .admin-tabs {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .profile-manager-header,
  .profile-section-head,
  .profile-page-main,
  .record-head,
  .profile-list-meta {
    display: grid;
  }

  .profile-metrics {
    grid-template-columns: 1fr;
  }

  .daily-bars {
    overflow-x: auto;
    grid-auto-flow: column;
    grid-auto-columns: 24px;
    grid-template-columns: none;
  }
}
