﻿/* Shared inner-page styles (pt-inner-*) — inherited by all platform templates */
:root {
  --pt-brand-blue: #164082;
  --pt-brand-red: #164082;
  --pt-brand-red-90: rgba(22, 64, 130, 0.9);
  --pt-brand-hover-bg: #eef3fb;
  --pt-brand-hover-border: #c5d9ef;
  --pt-brand-hover-soft: #f5f8fc;
  --pt-brand-shadow-rgb: 22, 64, 130;
  --pt-brand-banner-dark: #1a3a6e;
  --pt-brand-gradient-mid: #2a5ca8;
  --pt-brand-gradient-end: #4a7bc8;
  --pt-text: #333333;
  --pt-text-muted: #666666;
  --pt-bg-page: #f8f8f8;
}
/* Inner pages (二级) */
.pt-main.pt-inner {
  background: var(--pt-bg-page);
}

.pt-inner-banner {
  width: 100%;
  height: 280px;
  background-color: var(--pt-brand-banner-dark);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.pt-inner-banner.is-default {
  background-image: linear-gradient(135deg, var(--pt-brand-blue) 0%, var(--pt-brand-gradient-mid) 50%, var(--pt-brand-gradient-end) 100%);
}

.pt-inner-layout {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  padding: 40px 16px 64px;
  box-sizing: border-box;
}

.pt-inner-sidebar {
  flex: 0 0 240px;
  width: 240px;
  background: #fff;
  border: 1px solid #e8eaed;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.pt-inner-sidebar-head {
  padding: 20px 16px;
  background: var(--pt-brand-blue);
  color: #fff;
}

.pt-inner-sidebar-head .en {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  opacity: 0.85;
  margin-bottom: 6px;
}

.pt-inner-sidebar-head .cn {
  display: block;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 10px;
}

.pt-inner-sidebar-rule {
  display: block;
  width: 36px;
  height: 3px;
  background: #fff;
  border-radius: 1px;
}

.pt-inner-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pt-inner-nav li {
  border-bottom: 1px solid #f0f1f3;
}

.pt-inner-nav li a {
  display: block;
  padding: 14px 16px;
  font-size: 14px;
  color: var(--pt-text);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.pt-inner-nav li a:hover {
  background: var(--pt-brand-hover-soft);
  color: var(--pt-brand-blue);
}

.pt-inner-nav li.is-active a,
.pt-inner-nav li.is-active a:hover {
  background: var(--pt-brand-blue);
  color: #fff;
  font-weight: 700;
  border-left: none;
  padding-left: 16px;
}

.pt-inner-content {
  flex: 1;
  min-width: 0;
  background: #fff;
  border: 1px solid #e8eaed;
  padding: 28px 32px 36px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.pt-inner-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pt-inner-news-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 24px;
  border: 1px solid #e8eaed;
  background: #fff;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.pt-inner-news-item--has-summary {
  align-items: flex-start;
}

.pt-inner-news-item--has-cover.pt-inner-news-item--no-summary {
  align-items: center;
}

.pt-inner-news-item--has-cover.pt-inner-news-item--has-summary {
  align-items: flex-start;
}

.pt-inner-news-thumb {
  flex-shrink: 0;
  width: 120px;
  height: 80px;
  overflow: hidden;
  border-radius: 4px;
  background: #eef1f5;
  display: block;
  text-decoration: none;
}

.pt-inner-news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.pt-inner-news-item--has-cover:hover .pt-inner-news-thumb img {
  transform: scale(1.03);
}

.pt-inner-news-item:hover {
  background: var(--pt-brand-hover-bg);
  border-color: var(--pt-brand-hover-border);
}

.pt-inner-news-body {
  flex: 1;
  min-width: 0;
}

.pt-inner-news-body h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.55;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pt-inner-news-summary {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.65;
  color: #888;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-all;
}

.pt-inner-news-body h3 a {
  color: var(--pt-text);
  text-decoration: none;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pt-inner-news-item:hover .pt-inner-news-body h3 a {
  color: var(--pt-brand-blue);
}

.pt-inner-news-date {
  flex-shrink: 0;
  text-align: right;
  min-width: 76px;
}

.pt-inner-news-date .year {
  display: block;
  font-size: 12px;
  color: #999;
  margin-bottom: 6px;
}

.pt-inner-news-date .md {
  display: block;
  font-family: Impact, "Arial Narrow", sans-serif;
  font-size: 32px;
  font-weight: 400;
  color: #b0b0b0;
  line-height: 1;
  letter-spacing: 0.02em;
}

.pt-inner-news-item:hover .pt-inner-news-date .md {
  color: var(--pt-brand-blue);
}

.pt-inner-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.pt-inner-photo-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fafafa;
  border: 1px solid #eee;
  transition: box-shadow 0.2s, transform 0.2s;
}

.pt-inner-photo-card:hover {
  box-shadow: 0 4px 16px rgba(var(--pt-brand-shadow-rgb), 0.12);
  transform: translateY(-2px);
}

.pt-inner-photo-thumb {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #eee;
}

.pt-inner-photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pt-inner-photo-label {
  display: block;
  padding: 12px 10px;
  font-size: 14px;
  text-align: center;
  color: var(--pt-text);
}

.pt-inner-video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.pt-inner-video-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  padding: 20px 12px;
  background: #fafafa;
  border: 1px solid #eee;
  text-decoration: none;
  color: var(--pt-text);
  transition: box-shadow 0.2s;
}

.pt-inner-video-card:hover {
  box-shadow: 0 4px 12px rgba(var(--pt-brand-shadow-rgb), 0.1);
  color: var(--pt-brand-blue);
}

.pt-inner-video-card.has-thumb {
  padding: 0;
  min-height: 0;
}

.pt-inner-video-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #222;
}

.pt-inner-video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pt-inner-video-label {
  display: block;
  padding: 10px 12px;
  font-size: 14px;
  text-align: center;
}

.pt-inner-detail-title {
  margin: 0 0 16px;
  font-size: 26px;
  font-weight: 700;
  color: var(--pt-text);
  line-height: 1.45;
}

.pt-inner-detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid #eee;
  font-size: 14px;
  color: #999;
  line-height: 1.6;
}

.pt-inner-detail-meta .pt-meta-sep {
  color: #ccc;
}

.pt-inner-detail-meta .pt-meta-source {
  color: #576b95;
}

.pt-inner-detail-body {
  line-height: 1.85;
  font-size: 16px;
  color: #333;
}

.pt-inner-detail-body img {
  max-width: 100%;
  height: auto;
}

.pt-inner-detail-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #eee;
}

.pt-inner-detail-pager-item {
  min-width: 0;
  padding: 16px 18px;
  border: 1px solid #e8eaed;
  border-radius: 4px;
  background: #fafbfc;
}

.pt-inner-detail-pager-label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  color: #999;
}

.pt-inner-detail-pager-title {
  display: block;
  font-size: 15px;
  line-height: 1.55;
  color: var(--pt-text);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pt-inner-detail-pager-title:hover {
  color: var(--pt-brand-blue);
}

.pt-inner-detail-pager-title.is-empty {
  color: #bbb;
}

.pt-inner-detail-pager-next {
  text-align: right;
}

.pt-inner-detail-pager-next .pt-inner-detail-pager-label,
.pt-inner-detail-pager-next .pt-inner-detail-pager-title {
  text-align: right;
}

.pt-inner-photo-view-img img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.pt-inner-empty {
  text-align: center;
  padding: 48px 16px;
  color: var(--pt-text-muted);
  font-size: 14px;
}

.pt-inner-pager {
  margin-top: 32px;
  padding-top: 8px;
  text-align: center;
}

.pt-pager {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.pt-pager-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  background: #fff;
  color: #333;
  font-size: 14px;
  line-height: 1;
  text-decoration: none;
  box-sizing: border-box;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.pt-pager-btn:hover:not(.is-disabled):not(.is-current):not(.pt-pager-ellipsis) {
  border-color: var(--pt-brand-blue);
  color: var(--pt-brand-blue);
}

.pt-pager-btn.is-current {
  background: var(--pt-brand-blue);
  border-color: var(--pt-brand-blue);
  color: #fff;
  font-weight: 600;
}

.pt-pager-btn.is-disabled {
  background: #f5f5f5;
  border-color: #e8e8e8;
  color: #ccc;
  cursor: not-allowed;
}

.pt-pager-btn.pt-pager-ellipsis {
  border-color: #eee;
  color: #666;
  letter-spacing: 1px;
  cursor: default;
}

.pt-pager-btn.pt-pager-arrow {
  font-size: 12px;
  padding: 0 8px;
}

/* Article search */
.pt-inner-layout--search {
  display: block;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.pt-inner-content--full {
  width: 100%;
}

.pt-search-head {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e8eaed;
}

.pt-search-title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
  color: var(--pt-brand-blue);
}

.pt-search-keyword {
  margin: 0;
  font-size: 14px;
  color: var(--pt-text-muted);
}

.pt-search-keyword strong {
  color: var(--pt-text);
}

.pt-search-hit {
  background: transparent;
  color: var(--pt-brand-blue);
  font-weight: 700;
  padding: 0;
}

/* Legacy inner helpers (detail body) */
.pt-inner-page {
  width: 100%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding: 96px 16px 48px;
  min-height: 400px;
  box-sizing: border-box;
}

@media (min-width: 1400px) {
  body.pt-platform .pt-inner-page {
    padding-left: 0;
    padding-right: 0;
  }
}

.pt-page-title {
  margin: 0 0 24px;
  font-size: 28px;
  color: var(--pt-brand-red);
  border-bottom: 3px solid var(--pt-brand-blue);
  padding-bottom: 12px;
}

.pt-meta {
  margin: -12px 0 24px;
  font-size: 14px;
  color: var(--pt-text-muted);
}

.pt-muted {
  color: var(--pt-text-muted);
  font-size: 14px;
  line-height: 1.6;
}

.pt-article-list,
.pt-photo-categories,
.pt-video-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pt-article-list li {
  padding: 12px 0;
  border-bottom: 1px dashed #ddd;
}

.pt-article-list .time {
  color: var(--pt-text-muted);
  margin-right: 12px;
}

.pt-article-content {
  line-height: 1.8;
  font-size: 16px;
}

.pt-article-content img {
  max-width: 100%;
  height: auto;
}

.pt-photo-categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pt-photo-categories li a {
  display: block;
  text-align: center;
}

.pt-photo-categories li img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 2px;
  margin-bottom: 8px;
  display: block;
}

.pt-photo-categories li span {
  font-size: 14px;
  font-weight: 500;
}

.pt-photo-view img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.pt-video-list li {
  padding: 12px 0;
  border-bottom: 1px dashed #ddd;
}

.pt-video-list li a {
  font-size: 16px;
  transition: color 0.3s;
}

.pt-video-list li a:hover {
  color: var(--pt-brand-red);
}

.pt-video-view a {
  display: inline-block;
  padding: 12px 24px;
  background: var(--pt-brand-red);
  color: #fff;
  border-radius: 2px;
  font-weight: 500;
  transition: opacity 0.3s;
}

.pt-video-view a:hover {
  opacity: 0.9;
}

.pt-no-data {
  color: var(--pt-text-muted);
  padding: 24px;
  text-align: center;
  background: #fafafa;
  border-radius: 6px;
}
