/* One Wide 宽屏与响应式覆盖。 */
.header,
.container.wrapper,
.footer,
.one-rank-modal {
  max-width: var(--ow-max-width, 1600px);
}

.container.wrapper {
  width: min(96%, var(--ow-max-width, 1600px));
}

.header {
  width: min(96%, var(--ow-max-width, 1600px));
}

@media (min-width: 769px) {
  .header {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    display: grid;
    column-gap: 20px;
  }

  .header .logo {
    justify-self: start;
  }

  .header .nav-scroll-container {
    justify-self: center;
    flex: none;
    max-width: 100%;
  }

  .header .nav {
    justify-content: center;
  }

  .header .header-right {
    justify-self: end;
    margin-left: 0;
  }
}

.main-right-wrapper > #wrap-load {
  flex: 1;
  min-width: 0;
}

.right-sidebar {
  width: var(--ow-right-width, 300px);
}

.nav > ul,
.nav > div > ul {
  display: contents;
}

.nav li {
  display: inline-flex;
}

.sort-list {
  display: flex;
  justify-content: flex-end;
  margin: 10px 0;
}

.sort-list .order {
  display: flex;
  gap: 8px;
}

.sort-list .order a {
  padding: 6px 12px;
  color: var(--text-secondary);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  text-decoration: none;
}

.text-comment {
  border: 0;
}

.category-menu-wrap {
  position: relative;
}

.category-sort-wrap {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 12px;
}

.category-sort-wrap .sort-list {
  margin: 0;
}

.category-dropdown-menu {
  z-index: 20;
}

.article-title {
  margin: 0 0 14px;
  color: var(--text-primary);
  text-align: center;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
  color: var(--text-tertiary);
}

.article-meta a,
.article-tags a {
  color: var(--text-secondary);
  text-decoration: none;
}

.article-content {
  line-height: 1.9;
  color: var(--text-primary);
  overflow-wrap: anywhere;
}

.article-content img,
.article-content video,
.article-content iframe {
  max-width: 100%;
  height: auto;
}

.article-content img[data-fancybox="article"] {
  cursor: zoom-in;
}

.article-footer {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 28px;
}

.article-footer button {
  border: 0;
  padding: 8px 14px;
  border-radius: 10px;
}

.comment-form {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

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

.comment-textarea {
  width: 100%;
  min-height: 120px;
  resize: vertical;
}

.comment-verify {
  display: flex;
  gap: 10px;
  align-items: center;
}

.comment-verify img {
  max-height: 40px;
}

.xianzan-gd {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(44px, 1fr));
  gap: 8px;
}

.xianzan-gd img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.footer {
  width: min(96%, var(--ow-max-width, 1600px));
  margin: 0 auto 20px;
}

.beian-wrapper {
  flex-direction: column;
  gap: 6px;
}

.footer-copyright,
.footer-records {
  width: 100%;
}

.footer-records {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 15px;
}

.footer-icp a {
  color: inherit;
  text-decoration: none;
}

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

.album-card {
  overflow: hidden;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow);
}

.album-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.album-card h2 {
  padding: 0 14px;
  font-size: 16px;
}

.timeline-list {
  display: grid;
  gap: 18px;
}

.timeline-item {
  padding: 20px;
  background: var(--glass-bg);
  border-left: 4px solid var(--accent-primary);
  border-radius: 14px;
}

@media (min-width: 1700px) {
  .post-item-img {
    width: 180px;
    height: 150px;
  }
  .post-excerpt {
    font-size: 16px;
  }
  .one-comment-list,
  .one-comment-tag-list {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 1100px) {
  .right-sidebar {
    width: 260px;
    padding: 20px;
  }
  .album-grid-wide {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .header,
  .container.wrapper,
  .footer {
    width: 96%;
  }
  .comment_xin_box {
    grid-template-columns: 1fr;
  }
  .album-grid-wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .post-images-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .search {
    width: 110px;
  }
  .search:focus-within {
    width: 145px;
  }
  .post-item {
    flex-direction: column;
  }
  .post-item-content {
    margin-right: 0;
  }
  .post-item-img {
    width: 100%;
    height: 210px;
    margin-top: 14px;
  }
  .album-grid-wide {
    grid-template-columns: 1fr;
  }
}

/* 评论区表情入口：保持轻量，同时与主题粉色玻璃质感一致。 */
.comment-form .xianzan-pd {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: max-content;
  min-height: 36px;
  padding: 7px 14px 7px 9px;
  border: 1px solid rgba(255, 140, 158, 0.36);
  border-radius: var(--radius-pill);
  color: var(--accent-primary);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 238, 242, 0.9));
  box-shadow: 0 4px 14px rgba(255, 140, 158, 0.15);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  user-select: none;
  cursor: pointer;
  transition: transform 0.22s ease, color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.comment-form .xianzan-pd::before {
  content: "☺";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-light));
  box-shadow: 0 3px 9px rgba(255, 140, 158, 0.26);
  font-size: 15px;
  line-height: 1;
}

.comment-form .xianzan-pd:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-light));
  box-shadow: 0 7px 18px rgba(255, 140, 158, 0.3);
  transform: translateY(-2px);
}

.comment-form .xianzan-pd:hover::before {
  color: var(--accent-primary);
  background: rgba(255, 255, 255, 0.94);
}

.comment-form .xianzan-pd:active {
  transform: translateY(0) scale(0.97);
}

.comment-form .xianzan-pd:focus-visible {
  outline: 3px solid rgba(255, 140, 158, 0.25);
  outline-offset: 2px;
}

@media (max-width: 768px) {
  .comment-form .xianzan-pd {
    min-height: 40px;
    padding: 8px 15px 8px 10px;
  }
}
