:root {
  --blue: #2955e8;
  --ink: #182347;
  --muted: #75809a;
  --line: #e5eaf4;
  --bg: #f6f8fc;
  --lime: #d8f58a;
  --cyan: #dbf2ff;
  --radius: 18px;
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button,
input,
textarea,
select,
a {
  outline-offset: 4px;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #98b6ff;
}
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #98b6ff;
  border-color: var(--blue);
}
.topbar {
  height: 88px;
  background: white;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 max(32px, calc((100vw - 1240px) / 2));
  position: sticky;
  top: 0;
  z-index: 10;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 21px;
  font-weight: 800;
  white-space: nowrap;
}
.brand small {
  display: block;
  font-family: monospace;
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--muted);
  margin-top: 4px;
}
.brand-icon {
  font-size: 32px;
  background: var(--blue);
  color: white;
  border-radius: 13px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
}
.topbar nav {
  display: flex;
  gap: 32px;
  height: 100%;
  align-items: center;
  font-size: 14px;
}
.topbar nav a {
  position: relative;
  color: var(--muted);
}
.topbar nav a.active {
  color: var(--blue);
  font-weight: 700;
}
.topbar nav a.active:after {
  content: "";
  height: 3px;
  position: absolute;
  background: var(--blue);
  left: 0;
  right: 0;
  bottom: -32px;
  border-radius: 3px;
}
.account {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 13px;
}
.btn {
  display: inline-flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  padding: 12px 19px;
  border-radius: 10px;
  background: white;
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
}
.btn.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
}
.btn:hover {
  filter: brightness(0.96);
}
.text-button {
  background: none;
  border: 0;
  color: var(--muted);
  padding: 8px;
  font-size: 13px;
}
.avatar {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: #e7edff;
  color: var(--blue);
  font-weight: 700;
  flex-shrink: 0;
}
.avatar.large {
  width: 62px;
  height: 62px;
  font-size: 25px;
}
main {
  max-width: 1240px;
  margin: auto;
  padding: 34px 32px 70px;
  min-height: calc(100vh - 165px);
}
.hero {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  background: #eaf0ff;
  border: 1px solid #dae4ff;
  border-radius: 24px;
  overflow: hidden;
  min-height: 275px;
}
.hero-copy {
  padding: 36px 38px;
  position: relative;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  font-family: monospace;
  color: var(--blue);
  font-weight: 700;
}
.hero h1 {
  font-size: 42px;
  letter-spacing: -1.5px;
  margin: 15px 0;
  line-height: 1.25;
  font-weight: 850;
}
.hero h1 span {
  color: var(--blue);
}
.hero p {
  color: #5d6c8e;
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 24px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.hero-note {
  font-size: 12px;
  color: #7787a9;
}
.hero-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(120deg, transparent, #dbe7ff);
  min-height: 275px;
}
.idea-card {
  background: white;
  border: 1px solid #c9d7ff;
  border-radius: 15px;
  padding: 22px;
  width: 235px;
  transform: rotate(-7deg);
  box-shadow: 0 18px 35px #324a9817;
  position: relative;
  z-index: 2;
}
.idea-card small {
  display: block;
  font-family: monospace;
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--muted);
}
.idea-card strong {
  display: block;
  font-size: 25px;
  margin: 18px 0 14px;
}
.idea-card .line {
  height: 7px;
  border-radius: 8px;
  background: #edf1f8;
  margin: 9px 0;
  width: 85%;
}
.idea-card .line.short {
  width: 58%;
}
.idea-tag {
  display: inline-block;
  background: var(--lime);
  padding: 7px 13px;
  border-radius: 20px;
  font-size: 12px;
  color: #456714;
  margin-top: 12px;
}
.floating {
  position: absolute;
  border-radius: 14px;
  background: white;
  box-shadow: 0 10px 30px #18234712;
  padding: 12px 18px;
  font-size: 13px;
  z-index: 3;
}
.floating.one {
  top: 40px;
  right: 25px;
  transform: rotate(6deg);
}
.floating.two {
  bottom: 40px;
  left: 22px;
  transform: rotate(5deg);
  background: var(--blue);
  color: white;
}
.art-spark {
  position: absolute;
  font-size: 60px;
  color: #7699f8;
  right: 35px;
  bottom: 25px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 32px 0 18px;
  gap: 16px;
}
.section-heading h2 {
  font-size: 21px;
  letter-spacing: -0.4px;
  margin: 0;
}
.section-heading small {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  margin-left: 12px;
}
.link {
  color: var(--blue);
  font-size: 13px;
}
.week-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.rank-mini {
  display: flex;
  gap: 14px;
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  min-height: 100px;
}
.rank-number {
  font-size: 28px;
  font-family: monospace;
  font-weight: 800;
  color: #adc0f6;
}
.rank-mini:first-child .rank-number {
  color: #c49a23;
}
.rank-mini strong {
  font-size: 14px;
  display: block;
}
.rank-mini p {
  margin: 7px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.week-empty {
  grid-column: 1/-1;
  background: white;
  border: 1px dashed #cbd6ef;
  border-radius: 14px;
  padding: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}
.week-empty span {
  color: var(--muted);
  font-size: 12px;
}
.gallery-tools {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.tabs {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.tab {
  padding: 9px 15px;
  background: none;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--muted);
  font-size: 13px;
}
.tab.active {
  background: var(--ink);
  color: white;
}
.search {
  position: relative;
  display: flex;
  gap: 10px;
}
.search input {
  width: 220px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  background: white;
  font-size: 13px;
}
.search select {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  padding: 9px;
  font-size: 13px;
  color: var(--muted);
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.project-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition:
    transform 0.18s,
    box-shadow 0.18s;
}
.project-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px #1b357b0b;
}
.cover {
  height: 175px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e7efff;
}
.cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cover.blue {
  background: #e9efff;
  color: #4264d5;
}
.cover.teal {
  background: #e0f4ef;
  color: #2b8e83;
}
.cover.peach {
  background: #fff0e5;
  color: #cc8252;
}
.cover.lilac {
  background: #efebff;
  color: #8964c8;
}
.cover.yellow {
  background: #faf2d8;
  color: #ad903d;
}
.cover.sky {
  background: #e4f3fb;
  color: #5398bd;
}
.mock-window {
  width: 63%;
  border: 1px solid #ffffffc9;
  background: #ffffffb8;
  border-radius: 10px;
  box-shadow: 0 12px 25px #162f7020;
  transform: rotate(-4deg);
  padding: 13px;
}
.mock-dots {
  font-size: 10px;
  letter-spacing: 3px;
  opacity: 0.5;
}
.mock-title {
  font-size: 18px;
  font-weight: 800;
  margin: 13px 0;
}
.mock-bars {
  display: flex;
  gap: 7px;
  align-items: end;
  height: 34px;
}
.mock-bars i {
  display: block;
  flex: 1;
  background: currentColor;
  opacity: 0.3;
  border-radius: 4px;
  height: 55%;
}
.mock-bars i:nth-child(2) {
  height: 90%;
}
.mock-bars i:nth-child(3) {
  height: 70%;
}
.mock-bars i:nth-child(4) {
  height: 100%;
}
.cover-symbol {
  position: absolute;
  right: 22px;
  bottom: 12px;
  font-size: 42px;
  font-weight: 800;
  opacity: 0.35;
}
.demo-label {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #ffffffd9;
  color: #71809a;
  padding: 4px 8px;
  font-size: 10px;
  border-radius: 5px;
}
.card-body {
  padding: 20px;
}
.category {
  font-size: 10px;
  color: var(--blue);
  background: #eef2ff;
  padding: 4px 8px;
  border-radius: 5px;
  display: inline-block;
}
.card-body h3 {
  font-size: 18px;
  margin: 12px 0 7px;
  line-height: 1.4;
}
.card-body > p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
  margin: 0;
  min-height: 46px;
}
.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #f0f3f8;
  margin-top: 17px;
  padding-top: 14px;
  font-size: 12px;
  color: var(--muted);
}
.author {
  display: flex;
  align-items: center;
  gap: 8px;
}
.author .avatar {
  width: 25px;
  height: 25px;
  font-size: 10px;
}
.metrics {
  display: flex;
  align-items: center;
  gap: 9px;
}
.vote {
  border: 1px solid var(--line);
  background: white;
  border-radius: 7px;
  padding: 5px 9px;
  font-size: 12px;
  color: var(--muted);
}
.vote.liked {
  background: #eef2ff;
  border-color: #b7c8ff;
  color: var(--blue);
}
.page-title {
  margin: 12px 0 25px;
}
.page-title h1 {
  font-size: 32px;
  margin: 9px 0;
}
.page-title p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
}
.form-panel {
  max-width: 800px;
  margin: auto;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.field {
  display: block;
  font-size: 13px;
  font-weight: 600;
}
.field.full {
  grid-column: 1/-1;
}
.field input,
.field textarea,
.field select {
  display: block;
  width: 100%;
  margin-top: 9px;
  border: 1px solid #dbe2ef;
  border-radius: 9px;
  padding: 12px;
  color: var(--ink);
  background: white;
  font-weight: 400;
}
.field textarea {
  resize: vertical;
  min-height: 140px;
}
.field small {
  display: block;
  color: var(--muted);
  font-weight: 400;
  font-size: 11px;
  margin-top: 7px;
}
.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 26px;
  gap: 12px;
}
.form-error {
  font-size: 13px;
  color: #c14355;
  margin: 12px 0;
  line-height: 1.6;
}
.upload-preview {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-top: 10px;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 28px;
}
.detail-head {
  display: flex;
  gap: 20px;
  align-items: start;
  margin-bottom: 25px;
}
.detail-mark {
  width: 72px;
  height: 72px;
  border-radius: 17px;
  background: #edf2ff;
  color: var(--blue);
  font-size: 32px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.detail-head h1 {
  margin: 0 0 10px;
  font-size: 30px;
}
.detail-head p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}
.detail-cover {
  height: 320px;
  border-radius: 15px;
  margin-bottom: 25px;
}
.prose {
  white-space: pre-wrap;
  font-size: 14px;
  line-height: 2;
  color: #53617f;
  overflow-wrap: anywhere;
}
.sidebar {
  align-self: start;
  position: sticky;
  top: 114px;
}
.sidebar .btn {
  width: 100%;
  margin-bottom: 12px;
}
.sidebar .vote {
  width: 100%;
  padding: 13px;
  font-weight: 600;
  font-size: 14px;
}
.sidebar h3 {
  font-size: 14px;
  margin-top: 22px;
}
.sidebar p {
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
}
.back {
  font-size: 13px;
  color: var(--muted);
  display: inline-block;
  margin-bottom: 24px;
}
.comment {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.comment-head {
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 13px;
}
.comment-head time {
  font-size: 11px;
  color: var(--muted);
  margin-left: auto;
}
.comment p {
  font-size: 14px;
  line-height: 1.8;
  margin-left: 41px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.reply-caption {
  font-size: 11px;
  color: var(--blue);
  margin: 8px 0 0 41px;
}
.comment-actions {
  margin-left: 34px;
}
.comment-form textarea {
  width: 100%;
  min-height: 100px;
  border: 1px solid var(--line);
  padding: 14px;
  border-radius: 10px;
  font-size: 14px;
  resize: vertical;
}
.comment-form .btn {
  margin-top: 10px;
}
.ranking-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.ranking-panel h2 {
  font-size: 20px;
  margin: 0 0 7px;
}
.ranking-panel > p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 25px;
}
.rank-row {
  display: flex;
  gap: 15px;
  padding: 19px 0;
  align-items: center;
  border-top: 1px solid var(--line);
}
.rank-row .rank-number {
  width: 38px;
  font-size: 25px;
}
.rank-row .rank-info {
  flex: 1;
  min-width: 0;
}
.rank-row strong {
  display: block;
  font-size: 15px;
}
.rank-row p {
  font-size: 12px;
  color: var(--muted);
  margin: 7px 0;
}
.rank-score {
  font-family: monospace;
  color: var(--blue);
  font-weight: 800;
  font-size: 22px;
}
.rank-score small {
  font-size: 10px;
  display: block;
  color: var(--muted);
  font-family: system-ui;
}
.rules {
  margin-top: 25px;
  background: #edf2ff;
  padding: 20px 24px;
  border-radius: 14px;
  font-size: 12px;
  color: #5c6d96;
  line-height: 1.9;
}
.empty {
  text-align: center;
  padding: 55px 20px;
  color: var(--muted);
  grid-column: 1/-1;
}
.empty strong {
  display: block;
  color: var(--ink);
  font-size: 19px;
  margin-bottom: 10px;
}
.empty .btn {
  margin-top: 20px;
}
.loading {
  padding: 80px;
  text-align: center;
  color: var(--muted);
}
.notice {
  padding: 13px 17px;
  border-radius: 10px;
  background: #edf2ff;
  font-size: 12px;
  color: #5e709c;
  margin-bottom: 22px;
  line-height: 1.7;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 22px;
  width: 440px;
  max-width: calc(100vw - 30px);
  padding: 35px;
  box-shadow: 0 30px 100px #10245130;
}
dialog::backdrop {
  background: #13234250;
  backdrop-filter: blur(4px);
}
.close {
  position: absolute;
  right: 15px;
  top: 12px;
  border: 0;
  background: none;
  font-size: 25px;
  color: var(--muted);
}
dialog h2 {
  font-size: 25px;
  margin: 0 0 8px;
}
dialog p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
}
dialog .field {
  margin-top: 18px;
}
dialog .primary {
  width: 100%;
  margin-top: 22px;
}
.modal-switch {
  text-align: center;
  margin-top: 18px;
  font-size: 12px;
  color: var(--muted);
}
.modal-switch button {
  color: var(--blue);
  background: none;
  border: 0;
}
#toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: white;
  padding: 13px 23px;
  border-radius: 12px;
  font-size: 13px;
  z-index: 50;
  box-shadow: 0 8px 25px #18234730;
  display: none;
  max-width: 90vw;
}
#toast.visible {
  display: block;
}
footer {
  max-width: 1240px;
  margin: auto;
  padding: 25px 32px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 11px;
  color: var(--muted);
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 15px;
}
.toolbar select {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
}
.admin-stats {
  display: flex;
  gap: 30px;
  margin-bottom: 25px;
}
.admin-stats strong {
  font-size: 28px;
  display: block;
}
.admin-stats span {
  font-size: 12px;
  color: var(--muted);
}
@media (max-width: 1000px) {
  .topbar {
    padding: 0 25px;
    gap: 16px;
  }
  .topbar nav {
    gap: 18px;
  }
  .account .user-name {
    display: none;
  }
  .hero h1 {
    font-size: 34px;
  }
  .hero-copy {
    padding: 28px;
  }
  .floating.one {
    right: 10px;
  }
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .detail-grid {
    grid-template-columns: 1fr 260px;
  }
}
@media (max-width: 700px) {
  .topbar {
    height: auto;
    min-height: 76px;
    flex-wrap: wrap;
    padding: 15px 20px;
    gap: 12px;
  }
  .brand {
    font-size: 18px;
  }
  .brand-icon {
    width: 36px;
    height: 36px;
    font-size: 25px;
  }
  .brand small {
    font-size: 8px;
  }
  .topbar nav {
    order: 3;
    width: 100%;
    justify-content: space-around;
    padding-top: 10px;
    font-size: 13px;
  }
  .topbar nav a.active:after {
    bottom: -9px;
  }
  .account {
    gap: 4px;
  }
  .account .btn {
    padding: 9px 11px;
    font-size: 12px;
  }
  .account .avatar {
    display: none;
  }
  main {
    padding: 22px 18px 45px;
  }
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .hero-copy {
    padding: 27px 25px;
  }
  .hero h1 {
    font-size: 34px;
  }
  .hero-art {
    display: none;
  }
  .hero-note {
    font-size: 11px;
  }
  .section-heading {
    margin-top: 28px;
  }
  .section-heading h2 {
    font-size: 19px;
  }
  .section-heading small {
    display: none;
  }
  .week-strip {
    grid-template-columns: 1fr;
  }
  .week-empty {
    display: block;
    line-height: 1.8;
  }
  .week-empty span {
    display: block;
  }
  .rank-mini {
    min-height: 75px;
    padding: 13px 18px;
  }
  .grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .cover {
    height: 190px;
  }
  .gallery-tools {
    gap: 13px;
  }
  .tabs {
    gap: 0;
  }
  .tab {
    padding: 8px 11px;
    font-size: 12px;
  }
  .search {
    width: 100%;
  }
  .search input {
    width: 100%;
    min-width: 0;
  }
  .search select {
    flex-shrink: 0;
  }
  .panel {
    padding: 22px;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 19px;
  }
  .form-actions {
    align-items: start;
  }
  .form-actions > span {
    font-size: 11px;
  }
  .detail-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .sidebar {
    position: static;
    order: -1;
  }
  .detail-head h1 {
    font-size: 24px;
  }
  .detail-mark {
    width: 52px;
    height: 52px;
    font-size: 25px;
  }
  .detail-cover {
    height: 220px;
  }
  .ranking-layout {
    grid-template-columns: 1fr;
  }
  .toolbar {
    flex-wrap: wrap;
  }
  .page-title h1 {
    font-size: 28px;
  }
  footer {
    padding: 22px 18px;
    display: block;
    line-height: 2;
  }
  footer span {
    display: block;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.card-meta-wrap {
  padding-top: 0;
}
.card-meta-wrap .card-meta {
  margin-top: 0;
}
#comments-panel {
  margin-top: 24px;
}
#comments-panel .section-heading {
  margin-top: 0;
}
.ranking-panel .empty {
  padding: 35px 5px;
}
