/* Muted teal and warm paper tones for shly.html. */
:root {
  --theme-primary-rgb: 58, 79, 80;
  --theme-primary-strong-rgb: 42, 60, 61;
  --theme-primary-soft-rgb: 83, 104, 104;
  --theme-accent-rgb: 101, 99, 81;
  --theme-shadow-rgb: 52, 65, 62;
  --theme-accent-text: #5c594a;
  --theme-accent-soft: #e8ece6;
  --theme-accent-hover: #dce3db;
  --theme-tag-bg: #eeece1;
  --theme-page-bg: #f6f4ee;
  --theme-surface: #eeeee7;
  --theme-comments-bg: #f5f6f2;
  --theme-itinerary-bg: #eef1eb;
  --theme-note-bg: #f4f2e9;
  --theme-note-text: #424d48;
  --theme-note-border: #939286;
  --theme-emphasis: #874c46;
  --glass-bg: rgba(233, 238, 233, 0.56);
  --glass-bg-strong: rgba(249, 248, 242, 0.76);
  --glass-border: rgba(217, 225, 216, 0.88);
  --ios-green: #567260;
  --wechat-button: #07c160;
  --wechat-button-hover: #06aa55;
  --message-button: #0066dd;
  --message-button-hover: #0055bb;
}

nav.article-site-nav a {
  color: var(--theme-primary);
}

.wechat-id:hover {
  background-color: var(--theme-accent-soft);
  box-shadow: 0 2px 8px rgba(var(--theme-primary-rgb), 0.15);
}

.post-content .theme-color {
  color: #b45309;
}

.at-color {
  color: #f39c12;
}

.form-group .required,
.error-message {
  color: var(--theme-emphasis);
}

.success-icon {
  background: var(--ios-green);
}

.copy-header svg {
  color: var(--ios-green);
  filter: drop-shadow(0 2px 4px rgba(var(--theme-shadow-rgb), 0.2));
}

.qr-modal-footer .primary-btn {
  background: var(--wechat-button);
  color: #0a2919;
}

.copy-footer .primary-btn,
.copy-footer .primary-btn:focus,
.copy-footer .primary-btn:active {
  background: var(--wechat-button) !important;
  color: #0a2919;
}

.qr-modal-footer .primary-btn:hover {
  background: var(--wechat-button-hover);
}

.copy-footer .primary-btn:hover {
  background: var(--wechat-button-hover) !important;
}

.message-btn,
.contact-form .submit-btn {
  background: var(--message-button);
  color: #fff;
}

.message-btn:hover,
.contact-form .submit-btn:hover {
  background: var(--message-button-hover);
}

.float-btn--wechat,
.float-btn--message,
.float-btn--wechat:hover,
.float-btn--message:hover {
  background: #fff;
}

.float-btn--wechat {
  color: var(--wechat-button);
}

.float-btn--message {
  color: var(--message-button);
}

.float-btn--back-to-top,
.float-btn--back-to-top:is(:hover, :focus, :active) {
  background: rgba(255, 255, 255, 0.62);
  -webkit-tap-highlight-color: transparent;
}

.floating-buttons .float-btn.float-btn--wechat svg,
.float-btn--message svg {
  fill: currentColor;
}

/* Site navigation and image viewer for shly.html. */
.article-site-nav {
  flex-direction: row;
  align-items: center;
  row-gap: 0;
}

/* 添加可点击图片的样式 */
.post-img,
.qr-code,
.modal-qr-code {
  cursor: zoom-in;
}

/* 图片查看器样式 */
.image-viewer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 3002;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

.image-viewer-content {
  position: relative;
  max-width: 90vw;
  max-height: calc(100dvh - 96px);
}

.image-viewer-content img {
  max-width: 100%;
  max-height: calc(100dvh - 96px);
  object-fit: contain;
  cursor: default;
}

.close-viewer-btn {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: white;
  font-size: 32px;
  cursor: pointer;
  padding: 8px;
  line-height: 1;
}

.close-viewer-btn:hover {
  color: #ddd;
}

/* 添加动画效果 */
.image-viewer {
  animation: fadeIn 0.3s ease;
}

.image-viewer-content {
  animation: zoomIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes zoomIn {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
