/* ============================================================
   VcWorld — 日式个人博客风格
   浅蓝花纹页头 / 三栏 / 灰色渐变栏目标题
   ============================================================ */

:root {
  --text: #333;
  --muted: #666;
  --faint: #999;
  --line: #bbb;
  --line-soft: #ddd;
  --head-top: #c9c9c9;
  --head-bottom: #9f9f9f;
  --link: #1a5fa8;
  --visited: #6a4c93;
  --hover: #c00;
  --score: #b45200;
  --page-bg: #e9eff4;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text);
  font: 12.5px/1.75 "Microsoft YaHei", "PingFang SC", "Meiryo", sans-serif;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:visited {
  color: var(--visited);
}

a:hover {
  color: var(--hover);
  text-decoration: underline;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

button,
input {
  font: inherit;
  color: inherit;
}

table {
  width: 100%;
  border-collapse: collapse;
}

.site {
  max-width: 1200px;
  margin: 0 auto;
}

/* ---------- 页头 ---------- */

.banner {
  background: #fbfcfd;
  border-bottom: 1px solid #c3c3c3;
  padding: 16px 20px 14px;
}

.banner h1 {
  font: bold 28px/1.25 "Microsoft YaHei", "Meiryo", sans-serif;
  letter-spacing: 2px;
  color: #333;
}

.banner h1 a {
  color: inherit;
  text-decoration: none;
}

.banner h1 a:hover {
  color: #3a3a3a;
  text-decoration: none;
}

.banner-desc {
  margin-top: 5px;
  color: #666;
  font-size: 12px;
}

/* ---------- 导航 ---------- */

.global-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  background: #fbfcfd;
  border-bottom: 1px solid var(--line);
  padding: 0 6px;
}

.global-nav a {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: bold;
  color: #334455;
  border-right: 1px solid #e6e6e6;
}

.global-nav a:first-child {
  border-left: 1px solid #e6e6e6;
}

.global-nav a:hover {
  background: #eef4f8;
  color: #111;
  text-decoration: none;
}

.global-nav a.active {
  background: #dfeaf3;
  color: #111;
}

/* ---------- 三栏 ---------- */

.wrap {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 200px;
  gap: 14px;
  padding: 14px 10px;
  align-items: start;
}

.sidebar {
  min-width: 0;
}

.main {
  min-width: 0;
  background: #fff;
  border: 1px solid #bbb;
  padding: 10px 14px 14px;
}

/* ---------- 方框 ---------- */

.box {
  margin-bottom: 12px;
  border: 1px solid #aaa;
  background: #fff;
}

.box-title {
  padding: 4px 8px;
  border-bottom: 1px solid #909090;
  background: linear-gradient(#c9c9c9, #9f9f9f);
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

.box-body {
  padding: 7px 8px;
}

.box-body.flush {
  padding: 0;
}

.box-link-all {
  display: block;
  padding: 5px 8px;
  border-top: 1px solid #e2e2e2;
  background: #fafafa;
  text-align: right;
  font-size: 11px;
}

/* ---------- 搜索 ---------- */

.side-search {
  display: flex;
  gap: 4px;
}

.side-search input {
  flex: 1;
  min-width: 0;
  height: 24px;
  padding: 0 5px;
  border: 1px solid #b0b0b0;
  background: #fff;
}

.side-search button {
  height: 24px;
  padding: 0 8px;
  border: 1px solid #999;
  background: #efefef;
  font-size: 11.5px;
  cursor: pointer;
}

.side-search button:hover {
  background: #e2e2e2;
}

/* ---------- 侧栏列表 ---------- */

.side-list li {
  padding: 4px 0;
  border-bottom: 1px dotted #ccc;
  font-size: 11.5px;
  line-height: 1.55;
}

.side-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.side-list .date {
  margin-right: 4px;
  color: var(--faint);
  font: 10.5px Verdana, Arial, sans-serif;
}

.cat-list li {
  padding: 3px 0;
  border-bottom: 1px dotted #ccc;
  font-size: 11.5px;
}

.cat-list li:last-child {
  border-bottom: 0;
}

.cat-list li::before {
  content: "■";
  margin-right: 4px;
  color: #7aa7c7;
  font-size: 8px;
  vertical-align: 1px;
}

.cat-list .count {
  color: var(--faint);
  font-size: 11px;
}

/* ---------- 资料卡 ---------- */

.profile-card {
  text-align: center;
}

.profile-card-inner {
  text-align: center;
}

.profile-photo {
  width: 92px;
  height: 92px;
  margin: 2px auto 6px;
  display: grid;
  place-items: center;
  border: 1px solid #b0b0b0;
  background: #f2f2f2;
  color: #aaa;
  font-size: 11px;
  overflow: hidden;
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-photo.avatar-small {
  width: 72px;
  height: 72px;
}

.profile-photo.avatar-large {
  width: 120px;
  height: 120px;
}

.profile-name {
  font-size: 13px;
  font-weight: bold;
}

.profile-handle {
  color: var(--faint);
  font-size: 11px;
}

.profile-text {
  margin-top: 5px;
  color: #555;
  font-size: 11.5px;
  line-height: 1.7;
  text-align: left;
}

.thumb {
  display: grid;
  place-items: center;
  border: 1px solid #c3c3c3;
  background: #f1f1f1;
  color: #b0b0b0;
  font-size: 10px;
  letter-spacing: 1px;
}

/* ---------- 正文 ---------- */

.breadcrumb {
  padding: 2px 0 8px;
  color: var(--faint);
  font-size: 11px;
}

.breadcrumb a {
  font-size: 11px;
}

.entry {
  padding: 10px 0 14px;
  border-bottom: 1px dotted #bbb;
}

.entry:first-of-type {
  padding-top: 2px;
}

.entry:last-of-type {
  border-bottom: 0;
}

.entry-meta {
  color: #777;
  font: 11px/1.7 Verdana, Arial, sans-serif;
}

.entry-meta .sep {
  margin: 0 5px;
  color: #bbb;
}

.entry-title {
  margin: 2px 0 6px;
  font-size: 18px;
  line-height: 1.4;
}

.entry-title a {
  color: #2b3b4a;
}

.entry-title a:hover {
  color: var(--hover);
}

.entry-body {
  color: #444;
  font-size: 12.5px;
  line-height: 1.85;
}

.entry-body p {
  margin-bottom: 6px;
}

.entry-tags {
  margin-top: 5px;
  color: #777;
  font-size: 11px;
}

.entry-tags a {
  margin-right: 5px;
}

.entry-list li {
  padding: 5px 0;
  border-bottom: 1px dotted #ddd;
  font-size: 12px;
  line-height: 1.7;
}

.entry-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.entry-date {
  margin-right: 6px;
  color: #999;
  font: 10.5px Verdana, Arial, sans-serif;
  white-space: nowrap;
}

.entry-summary {
  margin-top: 2px;
  color: #777;
  font-size: 11.5px;
  line-height: 1.7;
}

.comment-list .comment-text {
  color: #444;
}

.entry-section {
  margin: 14px 0 0;
}

.entry-section:first-child {
  margin-top: 0;
}

.entry-section h2 {
  padding-bottom: 4px;
  margin-bottom: 8px;
  border-bottom: 1px solid #ccc;
  font-size: 16px;
  color: #2b3b4a;
}

.entry-section .more {
  float: right;
  font-size: 11px;
  font-weight: normal;
}

/* ---------- 作品表 ---------- */

.works-table {
  border: 1px solid #ccc;
}

.works-table th,
.works-table td {
  padding: 4px 7px;
  border-bottom: 1px solid #e3e3e3;
  text-align: left;
  vertical-align: top;
}

.works-table thead th {
  background: #f3f3f3;
  border-bottom: 1px solid #ccc;
  white-space: nowrap;
}

.works-table tbody tr:last-child td {
  border-bottom: 0;
}

.works-table tbody tr:hover td {
  background: #fafafa;
}

.c-over {
  width: 50px;
}

.work-thumb {
  width: 40px;
  height: 54px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 2px;
  border: 1px solid #c8c8c8;
  background: #f2f2f2;
  color: #a8a8a8;
  font-size: 9px;
  line-height: 1;
  overflow: hidden;
}

.work-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.block-image {
  max-width: 100%;
  margin: 4px 0;
  border: 1px solid #ddd;
}

.work-title {
  font-size: 12.5px;
  font-weight: bold;
}

.work-original {
  color: var(--faint);
  font-size: 11px;
  line-height: 1.5;
}

.work-tags {
  color: var(--faint);
  font-size: 11px;
}

.work-tags a {
  color: #557799;
}

.work-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.work-tag {
  display: inline-block;
  padding: 0;
  border: 0;
  background: none;
  color: #42637f;
  font-size: 11px;
  line-height: 1.8;
  white-space: nowrap;
  text-decoration: none;
}

.work-tag:hover {
  color: #c00;
  background: none;
  text-decoration: underline;
}

.entry-tags .work-tag {
  margin-right: 8px;
}

/* 首页置顶 */

.pinned-entry {
  margin-bottom: 16px;
  padding: 10px 12px;
  border: 1px solid #d5e0e9;
  background: #fbfdff;
}

.pinned-cover {
  float: left;
  width: 110px;
  margin: 2px 12px 6px 0;
  border: 1px solid #ccc;
}

.pinned-meta {
  margin: 4px 0;
  color: #666;
  font-size: 11.5px;
}

.pinned-excerpt {
  margin: 6px 0 0;
  color: #555;
  font-size: 12px;
  line-height: 1.8;
}

.work-type {
  white-space: nowrap;
  color: #555;
}

.work-type .year {
  color: var(--faint);
  font-size: 11px;
}

.score {
  text-align: right;
  white-space: nowrap;
  color: var(--score);
  font-weight: bold;
}

.num {
  text-align: right;
  white-space: nowrap;
}

/* ---------- 右栏 ---------- */

.banner-slot {
  margin-bottom: 6px;
  padding: 8px 4px;
  border: 1px dashed #b9c6d0;
  background: #f7fafc;
  color: #9aacb9;
  font-size: 10px;
  text-align: center;
  line-height: 1.6;
}

.banner-slot:last-child {
  margin-bottom: 0;
}

.small-note {
  color: #666;
  font-size: 11px;
  line-height: 1.75;
}

/* ---------- 页脚 ---------- */

.site-footer {
  margin-top: 4px;
  padding: 12px 14px 18px;
  border-top: 1px solid #c3c3c3;
  background: #f7f9fb;
  text-align: center;
  color: #8a8a8a;
  font-size: 11px;
  line-height: 1.9;
}

.site-footer a {
  font-size: 11px;
}

/* ---------- 占位页 ---------- */

.stub {
  padding: 4px 2px 10px;
}

.stub h1 {
  font-size: 17px;
  margin-bottom: 8px;
  color: #2b3b4a;
}

.stub p {
  margin-bottom: 8px;
  color: #444;
  line-height: 1.85;
}

.stub .placeholder {
  margin: 12px 0;
  padding: 9px 10px;
  border: 1px dashed #c4c4c4;
  background: #fafafa;
  color: #888;
  font-size: 11.5px;
}

.empty {
  padding: 22px 6px;
  text-align: center;
  color: var(--faint);
  font-size: 11.5px;
}

/* ---------- 按钮（后台复用） ---------- */

.btn {
  display: inline-block;
  padding: 3px 10px;
  border: 1px solid #999;
  background: #efefef;
  color: #222;
  font-size: 12px;
  line-height: 18px;
  cursor: pointer;
  text-decoration: none;
}

.btn:hover {
  background: #e3e3e3;
  color: #000;
  text-decoration: none;
}

:focus-visible {
  outline: 1px dotted #333;
  outline-offset: 1px;
}

/* ---------- 列表页 / 详情页 ---------- */

.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 2px 0 10px;
  padding-bottom: 4px;
  border-bottom: 1px solid #ccc;
}

.section-title h2 {
  font-size: 16px;
  color: #2b3b4a;
}

.filter-note {
  margin-bottom: 8px;
  color: #777;
  font-size: 11.5px;
}

.work-detail-score {
  margin: 6px 0;
  color: #555;
}

.work-detail-score .score {
  font-size: 15px;
}

.work-detail-cover,
.post-cover {
  max-width: 260px;
  margin: 8px 0;
  border: 1px solid #ccc;
}

.admin-link-line {
  margin-top: 14px;
  padding-top: 8px;
  border-top: 1px dotted #ccc;
  font-size: 11.5px;
}

.post-index li {
  padding: 7px 0;
}

/* ---------- 留言表单 ---------- */

.comment-form {
  margin-bottom: 14px;
  padding: 10px;
  border: 1px solid #ccc;
  background: #fafafa;
}

.comment-form-row {
  display: flex;
  gap: 10px;
  margin-bottom: 6px;
}

.comment-form-row label {
  flex: 1;
  color: #555;
  font-size: 11.5px;
}

.comment-form label {
  display: block;
  color: #555;
  font-size: 11.5px;
}

.comment-form input[type="text"],
.comment-form textarea {
  display: block;
  width: 100%;
  margin-top: 2px;
  padding: 3px 6px;
  border: 1px solid #bbb;
  background: #fff;
  font: 12px/1.7 "Microsoft YaHei", sans-serif;
}

.comment-form textarea {
  min-height: 76px;
  resize: vertical;
}

.comment-form-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.form-msg {
  color: #4a6b2f;
  font-size: 11.5px;
}

.form-msg.error {
  color: #a03030;
}

.comment-honeypot {
  display: none !important;
}

/* ---------- 图集 ---------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.gallery-item {
  margin: 0;
  border: 1px solid #ccc;
  padding: 6px;
  background: #fafafa;
}

.gallery-item img {
  width: 100%;
  border: 1px solid #ddd;
}

.gallery-item figcaption {
  margin-top: 4px;
  color: #777;
  font-size: 11px;
}

/* ---------- 窄屏 ---------- */

@media (max-width: 1020px) {
  .wrap {
    grid-template-columns: 210px minmax(0, 1fr);
  }

  .sidebar-right {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 12px;
  }
}

@media (max-width: 760px) {
  .wrap {
    grid-template-columns: minmax(0, 1fr);
    padding: 10px;
  }

  .sidebar-left {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 12px;
  }

  .sidebar-right {
    grid-template-columns: minmax(0, 1fr);
  }

  .banner h1 {
    font-size: 24px;
  }

  .works-scroll {
    overflow-x: auto;
  }

  .works-scroll .works-table {
    min-width: 460px;
  }
}

@media (max-width: 520px) {
  .sidebar-left {
    display: block;
  }

  .global-nav a {
    padding: 6px 9px;
  }
}
