/* 逍客图影 — 简约清爽主题 */
:root {
  --color-primary: #ec4899;
  --color-primary-hover: #db2777;
  --color-primary-light: #fce7f3;
  --color-accent: #8b5cf6;
  --color-bg: #fff5f9;
  --color-surface: #ffeef5;
  --color-text: #1f2937;
  --color-text-muted: #9ca3af;
  --color-border: #fbcfe8;
  --color-danger: #ef4444;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 8px 24px rgba(15, 23, 42, 0.1);
  --header-h: 56px;
  --nav-h: 48px;
  --content-max: 720px;
  --content-wide: 1100px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --transition: 0.2s ease;
}




*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-bg);
  max-width: var(--content-max);
  margin: 0 auto;
  min-height: 100vh;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

@media (min-width: 768px) {
  body {
    max-width: var(--content-wide);
    padding: 0 24px 24px;
  }
}

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

a:hover {
  color: var(--color-primary-hover);
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

/* —— 站点顶栏 —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--header-h);
  padding: 0 16px;
}

.site-header__brand {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-text);
}

.site-header__brand span {
  color: var(--color-primary);
}

.header-tabs {
  display: flex;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  justify-content: center;
  padding: 0;
}

.header-tab {
  flex: 1;
  max-width: 160px;
  color: var(--color-text-muted);
  text-align: center;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
}

.header-tab:hover {
  color: var(--color-primary);
  background: var(--color-primary-light);
}

.header-tab.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
  font-weight: 600;
}

/* —— 搜索区 —— */
.search-panel {
  background: var(--color-surface);
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border);
}

.search-panel .search-form label {
  display: flex;
  align-items: center;
  gap: 0;
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}

.search-panel .search-field {
  flex: 1;
  width: 100%;
  height: 44px;
  padding: 0 48px 0 16px;
  font-size: 15px;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.search-panel .search-field:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.search-panel .search-field::placeholder {
  color: #94a3b8;
}

.search-panel .search-submit {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--color-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.search-panel .search-submit:hover {
  background: var(--color-primary-hover);
}

.search-panel .search-submit img {
  width: 18px !important;
  height: 18px;
  filter: brightness(0) invert(1);
}

/* —— 分类导航（一行四列） —— */
.site-nav {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
}

.site-nav__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 0;
}

.site-nav__list li {
  min-width: 0;
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.site-nav__list li:nth-child(4n) {
  border-right: none;
}

.site-nav__list a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 6px;
  font-size: 18px;
  font-weight: 500;
  text-align: center;
  color: var(--color-text-muted);
  background: var(--color-surface);
  border-radius: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all var(--transition);
}

.site-nav__list a:hover {
  color: var(--color-primary);
  background: var(--color-primary-light);
}

.site-nav__list li.active a {
  color: #fff;
  background: var(--color-primary);
  font-weight: 600;
}

@media (max-width: 360px) {
  .site-nav__list a {
    font-size: 13px;
    padding: 10px 6px;
  }
}

/* 兼容旧 class */
.menu {
  background: transparent;
  overflow: visible;
}

.menu .search {
  background: transparent !important;
  padding: 0;
}

.menu li {
  float: none;
  width: auto;
  list-style: none;
}

/* —— 轮播 —— */
.hero-carousel {
  margin: 12px 16px 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.slideBox {
  position: relative;
  max-width: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.slideBox .hd {
  position: absolute;
  height: 28px;
  line-height: 28px;
  bottom: 12px;
  left: 0;
  right: 0;
  z-index: 2;
  text-align: center;
}

.slideBox .hd li {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  text-indent: -9999px;
  overflow: hidden;
  margin: 0 4px;
  transition: transform var(--transition), background var(--transition);
}

.slideBox .hd li.on {
  background: #fff;
  transform: scale(1.2);
}

.slideBox .bd {
  position: relative;
  z-index: 0;
}

.slideBox .bd li {
  position: relative;
  text-align: center;
}

.slideBox .bd li img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  vertical-align: top;
}

@media (min-width: 768px) {
  .slideBox .bd li img {
    max-height: 420px;
  }
}

.slideBox .bd li a {
  -webkit-tap-highlight-color: transparent;
}

/* —— 滚动公告 —— */
.ticker-bar {
  margin: 12px 16px;
  padding: 10px 14px;
  background: linear-gradient(90deg, #fff7ed 0%, #fff 100%);
  border: 1px solid #fed7aa;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.ticker-bar marquee,
.ticker-bar .ticker-inner {
  font-size: 14px;
  color: var(--color-danger);
  font-weight: 500;
}

.ticker-bar p {
  margin: 0;
}

/* —— 视频网格 —— */
.category-block {
  margin: 0 16px 8px;
}

.item-list,
#list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  list-style: none;
  width: 100%;
  margin: 0;
  padding: 0;
}

@media (min-width: 480px) {
  .item-list,
  #list {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
}

@media (min-width: 768px) {
  .item-list,
  #list {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
}

.item-list li,
#list li {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  /*aspect-ratio: 3 / 4;*/
  transition: transform var(--transition), box-shadow var(--transition);
}

.item-list li:hover,
#list li:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.item-list li a,
#list li a {
  display: block;
  position: relative;
  width: 100%;
  /*height: 100%;*/
}

.item-list li img,
#list li img {
  width: 100% !important;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background: rgba(13, 148, 136, 0.92);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  pointer-events: none;
}

.video-play-icon::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 14px solid #fff;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  margin-left: 4px;
}

#list li .title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px 10px;
  font-size: 12px;
  color: #fff;
  background: linear-gradient(transparent, rgba(15, 23, 42, 0.75));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.view-more-button {
  text-align: center;
  margin: 4px 16px 24px;
}

.view-more-button a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 28px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-primary) !important;
  background: var(--color-surface);
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-full);
  transition: all var(--transition);
}

.view-more-button a:hover {
  color: #fff !important;
  background: var(--color-primary);
}

/* —— 分页 —— */
.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 20px 16px 32px;
}

.pagination a,
.pagination span {
  min-width: 40px;
  padding: 8px 14px;
  font-size: 14px;
  text-align: center;
  text-decoration: none;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.pagination a:hover {
  color: #fff;
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.pagination .current {
  color: #fff;
  background: var(--color-primary);
  border-color: var(--color-primary);
}

/* —— 页面标题 —— */
.page-header {
  padding: 24px 16px 16px;
  text-align: center;
}

.page-header h2 {
  font-size: 22px;
  font-weight: 600;
  color: var(--color-text);
}

.page-header p {
  margin-top: 6px;
  font-size: 14px;
  color: var(--color-text-muted);
}

/* 单行标题栏（分类页等） */
.page-header--inline {
  margin: 8px; 
  padding: 0;
  text-align: left;
}

.page-header--inline .page-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 14px 18px;
  background: linear-gradient(135deg, var(--color-surface) 0%, #f0fdfa 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.page-header--inline .page-header__title {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding-left: 14px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  position: relative;
}

.page-header--inline .page-header__title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 22px;
  background: linear-gradient(180deg, var(--color-primary) 0%, #14b8a6 100%);
  border-radius: 2px;
}

.page-header--inline .page-header__count {
  flex-shrink: 0;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-primary);
  background: rgba(13, 148, 136, 0.1);
  border: 1px solid rgba(13, 148, 136, 0.2);
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.page-header--inline .page-header__count strong {
  font-size: 18px;
  font-weight: 700;
  margin: 0 2px;
}

@media (max-width: 400px) {
  .page-header--inline .page-header__inner {
    padding: 12px 14px;
    gap: 10px;
  }

  .page-header--inline .page-header__title {
    font-size: 17px;
    padding-left: 12px;
  }

  .page-header--inline .page-header__title::before {
    height: 18px;
  }

  .page-header--inline .page-header__count {
    padding: 6px 12px;
    font-size: 12px;
  }

  .page-header--inline .page-header__count strong {
    font-size: 16px;
  }
}

.page-title {
  padding: 24px 16px 16px;
  text-align: center;
}

.page-title h2 {
  font-size: 22px;
  font-weight: 600;
  color: var(--color-text);
}

.page-title p {
  margin-top: 6px;
  font-size: 14px;
  color: var(--color-text-muted);
}

.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--color-text-muted);
}

.empty-state a {
  font-weight: 500;
}

/* —— 详情页 —— */
.content-wrapper {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 16px;
  box-sizing: border-box;
}

.breadcrumb {
  padding: 12px 0 16px;
  font-size: 14px;
  color: var(--color-text-muted);
}

.breadcrumb a {
  color: var(--color-primary);
}

.breadcrumb span {
  color: var(--color-text);
}

.dh {
  padding: 12px 0 16px;
  font-size: 14px;
  color: var(--color-text-muted);
}

.dh a {
  color: var(--color-primary);
}

.dh span {
  color: var(--color-text);
}

.video-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

.video-content video {
  width: 100%;
  max-height: 480px;
  border-radius: var(--radius-md);
  background: #000;
  object-fit: contain;
}

.image-content {
  text-align: center;
}

.image-content .img-container {
  position: relative;
  width: 100%;
  line-height: 0;
}

.image-content .detail-main-image {
  width: 100%;
  max-height: 480px;
  object-fit: contain;
  border-radius: var(--radius-md);
  cursor: zoom-in;
  display: block;
}

.image-content .zoom-hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px;
  font-size: 13px;
  color: #fff;
  text-align: center;
  background: linear-gradient(transparent, rgba(15, 23, 42, 0.65));
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  pointer-events: none;
}

.video-actions {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition);
}

.btn-primary {
  color: #fff;
  background: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--color-primary-hover);
}

.btn-secondary {
  color: var(--color-primary);
  background: var(--color-primary-light);
  border: 1px solid var(--color-primary);
}

.btn-secondary:hover {
  background: var(--color-primary);
  color: #fff;
}

.hide-content {
  display: none !important;
}

.vmain2 {
  border: none;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.vmain2 .box {
  padding: 20px;
  background: var(--color-surface);
}

.vmain2 .desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text);
}

.vmain2 .desc strong {
  color: var(--color-danger);
}

.img-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.92);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.img-modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.img-modal-content img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
}

.img-close {
  position: absolute;
  top: 16px;
  right: 16px;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  z-index: 2001;
  line-height: 1;
}

/* —— 搜索页独立块 —— */
.search-page-form {
  margin: 16px;
  padding: 20px;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.search-page-form form {
  display: flex;
  gap: 10px;
}

.search-page-form input {
  flex: 1;
  height: 44px;
  padding: 0 16px;
  font-size: 15px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  outline: none;
}

.search-page-form input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.search-page-form button {
  padding: 0 24px;
  height: 44px;
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  background: var(--color-primary);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--transition);
}

.search-page-form button:hover {
  background: var(--color-primary-hover);
}

.sub-categories {
  overflow-x: auto;
  white-space: nowrap;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.sub-categories-list {
  display: flex;
  flex-wrap: nowrap;
}

.sub-categories-list li {
  scroll-snap-align: start;
}

.sub-categories::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.sub-categories ul li {
  float: left;
  list-style: none;
  background: var(--color-primary);
  text-align: center;
  padding: 8px 12px;
  margin: 4px;
  border-radius: var(--radius-sm);
}

.sub-categories ul li a {
  color: #fff;
  font-size: 13px;
}

/* 通知 toast */
.site-toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  min-width: 260px;
  max-width: 90vw;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  text-align: center;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 99999;
  animation: toast-in 0.35s ease-out forwards;
}

.site-toast--success {
  background: var(--color-primary);
}

.site-toast--error {
  background: var(--color-danger);
}

.site-toast--info {
  background: var(--color-accent);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes toast-out {
  from {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  to {
    opacity: 0;
    transform: translateX(-50%) translateY(-12px);
  }
}

/* —— 复制文案弹窗 —— */
.copy-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
}

.copy-modal__panel {
  position: relative;
  width: 100%;
  max-width: 420px;
  padding: 24px 20px 20px;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.copy-modal__panel h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
}

.copy-modal__tip {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--color-text-muted);
  text-align: center;
}

.copy-modal__textarea {
  width: 100%;
  min-height: 160px;
  margin-bottom: 16px;
  padding: 12px;
  font-size: 15px;
  font-family: inherit;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  resize: vertical;
  -webkit-user-select: text;
  user-select: text;
}

.copy-modal__panel .btn {
  width: 100%;
}

.copy-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  line-height: 32px;
  font-size: 24px;
  color: var(--color-text-muted);
  text-align: center;
  cursor: pointer;
}
