/* Personal / radiant visual layer. Preserves documentation content. */
:root {
  --personal-ink: #f6f4ff;
  --personal-muted: #ccd0e4;
  --personal-gold: #f0dba6;
  --personal-border: rgba(239, 224, 255, .2);
}
html { scroll-behavior: smooth; }
body, body[data-md-color-scheme] {
  background: #0b1022;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
}
.md-container {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 65% 52% at 86% 11%, rgba(115,83,204,.28), transparent 73%),
    radial-gradient(ellipse 55% 55% at 6% 75%, rgba(44,123,162,.19), transparent 75%),
    radial-gradient(ellipse 30% 30% at 55% 80%, rgba(191,139,95,.1), transparent 95%),
    #0b1022;
}
.md-header {
  background: rgba(10, 14, 33, .86) !important;
  box-shadow: none;
  border-bottom: 1px solid rgba(225,215,255,.13);
  backdrop-filter: blur(20px);
}
.md-header__title { font-weight: 720; letter-spacing: .025em; }
.md-tabs {
  background: rgba(10, 14, 33, .8) !important;
  border-bottom: 1px solid rgba(225,215,255,.1);
  backdrop-filter: blur(16px);
}
.md-tabs__link { opacity: .78; }
.md-tabs__link--active { color: #f5daa1; opacity: 1; }
.md-tabs__link:hover { color: #ffe8bf; opacity: 1; }
.md-search__form { background: rgba(245,240,255,.11); border-radius: 12px; }
.md-search__form:hover { background: rgba(245,240,255,.16); }
.md-main { color: var(--personal-ink); }
.md-typeset { color: var(--personal-ink); font-size: .84rem; line-height: 1.95; }
.md-typeset h1, .md-typeset h2, .md-typeset h3 {
  color: #fff; font-weight: 650; letter-spacing: .01em;
}
.md-typeset a { color: #c2c9ff; }
.md-typeset a:hover { color: #ffe9be; }
.md-nav { color: #d1d2e6; }
.md-nav__link:hover, .md-nav__link--active { color: #f5dcab !important; }
.md-footer { background: #0b1022; }
.md-content__inner { padding-top: 2.2rem; }
.md-typeset table:not([class]) { background: rgba(255,255,255,.045); }
.md-typeset table:not([class]) th { background: rgba(255,255,255,.12); }
.md-typeset table:not([class]) td { border-bottom-color: rgba(255,255,255,.1); }
/* Contact page: minimalist, luminous personal landing */
body:has(.cc-layout) .md-main__inner { max-width: 1200px; }
body:has(.cc-layout) .md-sidebar { display: none; }
body:has(.cc-layout) .md-content {
  max-width: 1100px;
  margin-inline: auto;
}
body:has(.cc-layout) .md-content__inner {
  margin: 0 auto;
  padding: clamp(28px, 5.5vw, 72px) 12px 74px;
}
body:has(.cc-layout) .md-content__inner > h1 {
  position: relative;
  font-weight: 760;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.26;
  letter-spacing: .06em;
  margin: 0 0 1.85rem;
  color: #fefbff;
  text-shadow: 0 0 28px rgba(210,171,255,.33);
}
body:has(.cc-layout) .md-content__inner > h1::after {
  content: "";
  display: block;
  width: 86px; height: 3px;
  margin-top: 18px; border-radius: 10px;
  background: linear-gradient(90deg,#d8b987,#efe4ba,#9b95ee);
  box-shadow: 0 0 24px rgba(233,203,153,.5);
}
.cc-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0,1.04fr) minmax(0,.96fr);
  gap: clamp(18px,3vw,32px);
  align-items: start;
}
.cc-layout::before {
  content:""; pointer-events:none; position:absolute;
  z-index:0; inset:-80px -20px -80px;
  background-image:
    radial-gradient(2px 2px at 15% 25%, rgba(255,231,177,.75), transparent),
    radial-gradient(2px 2px at 73% 8%, rgba(255,255,255,.65), transparent),
    radial-gradient(2px 2px at 90% 75%, rgba(203,188,255,.72), transparent),
    radial-gradient(1px 1px at 41% 92%, rgba(255,255,255,.82), transparent);
  opacity: .7;
}
.cc-message, .cc-qr-card {
  position: relative; z-index: 1;
  border-radius: 24px;
  padding: clamp(24px, 3.5vw, 45px);
  overflow: hidden;
  box-shadow: 0 30px 85px rgba(0,0,0,.22);
}
.cc-message {
  color: #f4f1fb;
  background:
    radial-gradient(circle at 94% 1%, rgba(244,205,139,.11),transparent 43%),
    linear-gradient(155deg,rgba(64,55,110,.62),rgba(20,29,62,.78));
  border: 1px solid var(--personal-border);
  backdrop-filter: blur(12px);
}
.cc-message::before {
  content: ""; position:absolute; right:-45px;top:-65px;
  height: 175px; width: 175px; border-radius: 50%;
  background: rgba(205,178,245,.18);
  filter: blur(50px); pointer-events: none;
}
.cc-message p { color: #e6e5f3; font-size: 1rem; line-height: 2.12; }
.cc-message p:first-child {
  font-size: 1.24rem;
  font-weight: 680;
  color: #fff;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,.15);
  margin-bottom: 22px;
}
.cc-message p:last-child { margin-bottom: 0; }
.cc-qr-card {
  background: linear-gradient(158deg,#fffefa,#f3f1fc 74%,#f0e8f3);
  color: #24243b;
  border: 1px solid rgba(238,209,153,.85);
  box-shadow: 0 18px 72px rgba(11,10,25,.32), 0 0 44px rgba(234,203,143,.09);
}
.cc-qr-card h2 {
  color: #26243b; font-size: 1.4rem;
  font-weight: 760; margin-top: 0; margin-bottom: .7rem;
}
.cc-qr-card h2::after {
  content: "";display:block;width:44px;height:2px;
  margin-top: 11px;border-radius:8px;
  background:linear-gradient(90deg,#caa56d,#a9a3df);
}
.cc-qr-card p { color:#5a5b69; line-height:1.9; }
.cc-qr-card img {
  display:block;
  width: min(100%, 400px) !important;
  height: auto !important;
  max-width: 100%;
  margin: 19px auto 22px;
  border-radius: 15px;
  background:white;
  box-shadow:0 10px 26px rgba(59,48,80,.12);
}
.cc-qr-card .admonition.tip {
  background:rgba(236,233,249,.77);
  color:#535365;
  border-color:#9d96d0;
  border-radius: 12px; overflow:hidden;
  box-shadow: none; margin-bottom:0;
}
.cc-qr-card .admonition.tip .admonition-title {
  background:rgba(216,209,244,.55);
  color:#3b345f; font-weight:700;
}
.cc-qr-card .admonition.tip p { color:#52536a;font-size:.88rem; }
@media (max-width: 820px) {
  .cc-layout { grid-template-columns: minmax(0,1fr); max-width:610px; margin-inline:auto; }
  body:has(.cc-layout) .md-content__inner > h1 { text-align:center; }
  body:has(.cc-layout) .md-content__inner > h1::after { margin-inline:auto; }
}
@media (max-width: 480px) {
  .cc-message,.cc-qr-card { border-radius: 19px; padding: 23px 19px; }
  .cc-message p { font-size: .92rem; }
  .md-typeset { font-size:.82rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
