:root {
  --ink: #050505;
  --text: #0a0a0a;
  --muted: #747984;
  --line: #e8ebf0;
  --soft: #f5f7fb;
  --blue: #0877ff;
  --blue-2: #00a0ff;
  --radius-xl: 28px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --container: 1248px;
  --shadow: 0 18px 54px rgba(15, 23, 42, .07);
}
* { box-sizing: border-box; min-width: 0; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.45;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 40px;
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid rgba(0,0,0,.06);
  backdrop-filter: blur(18px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 190px;
  font-weight: 800;
}
.logo-brand {
  min-width: 190px;
}
.brand-logo {
  display: block;
  width: 168px;
  height: auto;
}
.mark {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #0a0a0a;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  padding: 5px;
}
.mark span { background: #fff; border-radius: 2px; }
.product-pill {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: #0a0a0a;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}
.navlinks {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  font-size: 16px;
  font-weight: 660;
  line-height: 1.25;
}
.navlinks a { color: #737b87; }
.navlinks a.active, .navlinks a:hover { color: #050505; font-weight: 850; }
.nav-menu-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 18px 0;
  margin: -18px 0;
}
.nav-dropdown {
  position: absolute;
  top: calc(100% - 1px);
  left: 50%;
  width: 168px;
  padding: 10px;
  border: 1px solid rgba(232,235,240,.96);
  border-radius: 16px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 18px 45px rgba(15,23,42,.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
  z-index: 70;
}
.nav-dropdown::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  height: 14px;
}
.nav-menu-wrap:hover .nav-dropdown,
.nav-menu-wrap:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}
.nav-dropdown a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  color: #111;
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
}
.nav-dropdown a:hover,
.nav-dropdown a.active {
  background: #edf6ff;
  color: var(--blue);
}
.nav-actions { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.user-stats {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 800;
  white-space: nowrap;
}
.user-stats .divider { color: #c8cdd4; }
.stat-item { display: inline-flex; align-items: center; gap: 5px; }
.user-menu {
  position: relative;
  display: flex;
  align-items: center;
  padding: 12px 0;
  margin: -12px 0;
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(135deg, #fbd34c, #ad6a00);
  position: relative;
  display: block;
}
.avatar::after {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  width: 14px;
  height: 9px;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #ffe58c, #cf8500);
  clip-path: polygon(0 100%, 16% 25%, 36% 70%, 50% 0, 64% 70%, 84% 25%, 100% 100%);
}
.avatar b {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #111;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 13px;
}
.member-avatar {
  --avatar-size: 46px;
  --frame-a: #fbd34c;
  --frame-b: #ad6a00;
  --crown-a: #ffe58c;
  --crown-b: #cf8500;
  width: var(--avatar-size);
  height: var(--avatar-size);
  border-radius: 50%;
  padding: calc(var(--avatar-size) * .06);
  position: relative;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--frame-a), var(--frame-b));
  box-shadow: 0 8px 18px rgba(15,23,42,.12);
  isolation: isolate;
}
.member-avatar::before {
  content: "";
  position: absolute;
  inset: calc(var(--avatar-size) * .12);
  border-radius: inherit;
  background: #111;
  z-index: -1;
}
.member-avatar::after {
  content: attr(data-medal);
  position: absolute;
  right: calc(var(--avatar-size) * -.04);
  bottom: calc(var(--avatar-size) * -.04);
  width: calc(var(--avatar-size) * .38);
  height: calc(var(--avatar-size) * .38);
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: calc(var(--avatar-size) * .045) solid #fff;
  color: #111827;
  background: linear-gradient(135deg, #fff, #eef2f7);
  font-size: calc(var(--avatar-size) * .2);
  line-height: 1;
  font-weight: 950;
  box-shadow: 0 5px 12px rgba(15,23,42,.16);
}
.member-avatar.founder::after {
  content: "";
  left: 50%;
  right: auto;
  top: calc(var(--avatar-size) * -.15);
  bottom: auto;
  width: calc(var(--avatar-size) * .42);
  height: calc(var(--avatar-size) * .28);
  border: 0;
  border-radius: 0;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--crown-a), var(--crown-b));
  clip-path: polygon(0 100%, 16% 25%, 36% 70%, 50% 0, 64% 70%, 84% 25%, 100% 100%);
  box-shadow: none;
}
.member-avatar.platinum {
  --frame-a: #eef7ff;
  --frame-b: #8db7dd;
}
.member-avatar.platinum::after {
  content: "P";
  color: #2563eb;
  background: linear-gradient(135deg, #fff, #d9ebff);
}
.member-avatar.gold {
  --frame-a: #fff1a8;
  --frame-b: #d99000;
}
.member-avatar.gold::after {
  content: "G";
  color: #7c4a00;
  background: linear-gradient(135deg, #fff7c2, #ffd45d);
}
.member-avatar.basic {
  --frame-a: #f8fafc;
  --frame-b: #cbd5e1;
}
.member-avatar.basic::after {
  content: "B";
  color: #566274;
  background: #f7f9fc;
}
.mobile-bottom-nav {
  display: none;
}
.profile-dropdown {
  position: absolute;
  top: calc(100% - 1px);
  right: 0;
  width: 150px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 18px 45px rgba(15,23,42,.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
  z-index: 80;
}
.profile-dropdown::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  height: 14px;
}
.profile-dropdown a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: #111;
  font-weight: 800;
}
.profile-dropdown a:hover { background: #f5f7fb; color: var(--blue); }
.user-menu:hover .profile-dropdown,
.user-menu:focus-within .profile-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.page { width: min(var(--container), calc(100% - 48px)); margin: 0 auto; padding: 72px 0 96px; }
.page-hero {
  min-height: 300px;
  border-radius: var(--radius-xl);
  padding: 48px;
  color: #fff;
  background:
    radial-gradient(circle at 76% 35%, rgba(0,160,255,.36), transparent 28%),
    linear-gradient(120deg, #050505, #101824 62%, #dff3ff);
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  overflow: hidden;
}
.kicker { color: var(--blue); font-size: 14px; font-weight: 900; margin-bottom: 12px; }
.page-hero .kicker { color: #75caff; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(34px, 3.1vw, 52px);
  line-height: 1.05;
  letter-spacing: 0;
  font-weight: 850;
  overflow-wrap: anywhere;
}
.lead {
  margin: 18px 0 0;
  max-width: 680px;
  color: rgba(255,255,255,.72);
  font-size: 17px;
  line-height: 1.8;
}
.section { padding: 72px 0 0; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 28px;
}
h2 {
  margin: 0;
  font-size: clamp(26px, 2.1vw, 36px);
  line-height: 1.12;
  letter-spacing: 0;
  font-weight: 820;
}
.desc {
  margin: 14px 0 0;
  color: var(--muted);
  max-width: 660px;
  line-height: 1.75;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0 26px;
  font-weight: 900;
  white-space: nowrap;
}
.btn-dark { background: #0a0a0a; color: #fff; }
.btn-light { background: #fff; color: #000; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-line { border-color: currentColor; background: transparent; }
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
}
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.feature-card, .plan-card, .service-card, .shop-card { padding: 28px; }
.feature-card { min-height: 230px; display: flex; flex-direction: column; align-items: flex-start; }
.icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #0a0a0a;
  color: #fff;
  font-weight: 900;
}
.feature-card h3, .shop-card h3, .service-card h3, .plan-card h3 { margin: 28px 0 10px; font-size: 20px; line-height: 1.2; }
.feature-card p, .shop-card p, .service-card p, .plan-card li { color: var(--muted); line-height: 1.6; font-size: 14px; }
.footer {
  padding: 38px 60px 58px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 13px;
}
.tabs { display: flex; gap: 22px; padding: 14px 18px; overflow-x: auto; }
.tabs span { color: var(--muted); font-weight: 800; white-space: nowrap; }
.tabs .active { color: #000; }
.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #edf6ff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}
@media (max-width: 1080px) {
  .navlinks { display: none; }
  .topbar { padding: 0 22px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .topbar { height: 56px; padding: 0 16px; }
  .topbar .nav-actions { display: none !important; }
  .brand { min-width: auto; }
  .brand-logo { width: 130px; }
  .product-pill { display: none; }
  .user-stats { gap: 6px; font-size: 13px; }
  .page { width: calc(100% - 24px); padding: 36px 0 64px; }
  .page-hero { padding: 32px 22px; display: block; min-height: 260px; border-radius: 22px; }
  h1 { font-size: 34px; line-height: 1.08; letter-spacing: 0; word-break: break-all; }
  .lead { font-size: 15px; word-break: break-all; }
  h2 { font-size: 26px; letter-spacing: 0; }
  .section-head { display: block; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer { padding: 28px 18px 40px; display: block; }
}

@media (max-width: 720px) {
  body { padding-bottom: 76px; }
  .mobile-bottom-nav {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 999 !important;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    min-height: 64px;
    padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(226,232,240,.92);
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(18px);
    box-shadow: 0 -12px 28px rgba(15,23,42,.08);
    transform: translateZ(0);
  }
  .mobile-bottom-nav a {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 3px;
    min-height: 48px;
    border-radius: 14px;
    color: #6b7280;
    font-size: 11px;
    font-weight: 850;
    line-height: 1;
  }
  .mobile-bottom-nav svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .mobile-bottom-nav a.active,
  .mobile-bottom-nav a:hover {
    color: var(--blue);
    background: #edf6ff;
  }
}

@media (max-width: 520px) {
  .page {
    width: min(calc(100% - 24px), 366px);
    margin-left: 12px;
    margin-right: 0;
  }
  .page-hero { padding: 28px 20px; }
}

/* Shared community section switcher: keep 广场 / 圈子 / 活动 / 咨询问答 aligned across pages. */
.community-quick {
  width: max-content !important;
  max-width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 5px !important;
  margin: 10px 0 16px !important;
  padding: 5px !important;
  border: 1px solid var(--line) !important;
  border-radius: 999px !important;
  background: #f5f7fb !important;
  box-shadow: 0 10px 26px rgba(15,23,42,.05) !important;
  overflow-x: auto !important;
}
.quick-tile {
  min-height: 36px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  padding: 0 16px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #68707b !important;
  font-size: 14px !important;
  font-weight: 850 !important;
  white-space: nowrap !important;
}
.quick-tile.active {
  background: #0a0a0a !important;
  color: #fff !important;
  box-shadow: 0 8px 22px rgba(0,0,0,.12) !important;
}
.quick-icon {
  width: 26px !important;
  height: 26px !important;
  border-radius: 10px !important;
  display: grid !important;
  place-items: center !important;
  background: #e6f3ff !important;
  color: var(--blue) !important;
  flex: 0 0 auto !important;
}
.quick-icon .ui-icon {
  width: 17px !important;
  height: 17px !important;
  stroke-width: 2.35 !important;
}
.quick-tile.active .quick-icon { background: #fff !important; color: var(--blue) !important; }
.community-page,
.activity-page,
.qa-page,
.circles-page { padding-top: 12px !important; }
@media (max-width: 720px) {
  .community-quick {
    position: sticky;
    top: 54px;
    z-index: 18;
    width: 100% !important;
    margin: 0 !important;
    padding: 8px 12px !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(226,232,240,.9) !important;
    border-radius: 0 !important;
    background: rgba(255,255,255,.96) !important;
    box-shadow: none !important;
    justify-content: flex-start !important;
    overflow-x: auto !important;
    scrollbar-width: none;
  }
  .community-quick::-webkit-scrollbar {
    display: none;
  }
  .quick-tile {
    flex: 0 0 auto !important;
    min-height: 34px !important;
    padding: 0 12px !important;
    border-radius: 999px !important;
    font-size: 14px !important;
  }
  .quick-icon {
    display: grid !important;
    width: 22px !important;
    height: 22px !important;
    border-radius: 8px !important;
  }
  .quick-icon .ui-icon {
    width: 14px !important;
    height: 14px !important;
  }
  .quick-tile.active {
    background: #0a0a0a !important;
    color: #fff !important;
    box-shadow: none !important;
  }
}

