:root {
  --maxw: 1100px;
  --gap: 16px;
  --fg: #111;
  --muted: #666;
  --bg: rgb(243, 244, 246);
  --card: #fafafa;
  --brand: #111;
  --line: #d0d7de;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font: 16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--fg);
  background: var(--bg);
}

.container {
  max-width: var(--maxw);
  margin: auto;
  padding: 0 16px;
}

.site-header {
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 5;
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 56px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--brand);
  font-weight: 700;
}

.nav {
  display: flex;
  gap: 12px;
  align-items: center;
}

.nav a {
  text-decoration: none;
  color: #222;
  padding: 6px 8px;
  border-radius: 8px;
}

.nav a:hover {
  background: #f2f2f2;
}

.dropdown {
  position: relative;
}

.dropbtn {
  background: transparent;
  border: 0;
  font: inherit;
  padding: 15px 8px;
  border-radius: 8px;
}

.dropdown-content {
  display: none;
  position: absolute;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .06);
  border-radius: 10px;
  padding: 8px;
  top: 100%;
  left: 0;
  min-width: 220px;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-content a {
  display: block;
  padding: 6px 8px;
  border-radius: 6px;
  text-decoration: none;
  color: #222;
}

.dropdown-content a:hover {
  background: #f2f2f2;
}




.shadow {
  --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.search {
  margin-left: auto;
  display: flex;
  gap: 8px;
}

.search input {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  min-width: 220px;
}

.search button {
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
}

.hero {
  padding: 32px 0 8px;
  text-align: center;
}

.hero h1 {
  margin: 0 0 8px;
  font-size: 28px;
}

.hero p {
  margin: 0;
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 1200px) {
  .grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 900px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 5px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 5px;
}

.card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}

.card .meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0px;
  text-decoration: none !important;
}

.card .name {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
}

.card .count {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #555;
  font-size: 0.9rem;
}

.card .count img {
  width: 16px;
  height: 16px;
  opacity: 0.7;
}

a.card,
a.card * {
  text-decoration: none !important;
  color: inherit;
}

.section {
  padding: 24px 0;
  border-top: 1px solid var(--line);
  margin-top: 15px;
}

.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (max-width: 800px) {
  .features {
    grid-template-columns: 1fr;
  }
}

.feature {
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 16px;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 24px 0;
  color: var(--muted);
  font-size: 14px;
}

.footer a {
  color: inherit;
}

.footer .container {
  display: flex;
  justify-content: center;
  /* 水平居中整个内容 */
  align-items: center;
  gap: 16px;
  /* 中间留点空隙 */
}

.title {
  text-align: center;
}

.banner {
  width: 100%;
  max-width: var(--maxw);
  height: 260px;
  object-fit: cover;
  border-radius: 5px;
  border: 1px solid var(--line);
}

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

.editor {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  display: grid;
  gap: 12px;
}

.download {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  display: grid;
  gap: 12px;
}

.download button {
  padding: 8px 12px;
}

.comments {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  display: grid;
  gap: 12px;
}

.comment {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 10px;
  margin: 5px;
}

.reply {
  margin-left: 16px;
}

.form-row {
  display: flex;
  gap: 8px;
  margin: 5px;
}

.form-row input,
.form-row textarea {
  flex: 1;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 2px;
}

.form-row button {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 2px;
}

.title-container {
  display: flex;
  align-items: flex-start;
}

.title-container .left {
  flex: 1;
  margin-right: 20px;
}

.title-container .left img {
  max-width: 100%;
  height: auto;
}

.title-container .right {
  flex: 2;
}

.title-container .title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
  text-align: right;
  /* Right-align the title */
}

.title-container .description {
  text-align: right;
  font-size: 16px;
}

.discord-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #5865F2;
  color: #fff;
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.1s ease;
}

.discord-btn:hover {
  background: #4752C4;
  transform: translateY(-1px);
}

.discord-icon {
  vertical-align: middle;
}

.comment-textarea {

  border-radius: .25rem;
  border-width: 1px;
  max-height: 500px;
  min-height: 100px;
  padding: .5rem;
  width: 100%;
  background-color: #f6f8fa;
}

/* Add a custom triangle to the summary */
.unl-summary::before {
    content: '\25B6'; /* Unicode character for triangle */
    font-size: 20px;
    margin-right: 10px;
    position: absolute;
}

/* Optionally, change triangle when open */
details[open] .unl-summary::before {
    content: '\25BC'; /* Downward triangle */
}