/* 确保移动端页面容器没有额外边距 */
html {
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
}

/* Mobile container */
.mobile-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
  max-width: 100%;
  margin: 0;
  margin-top: 57px; /* 避开固定导航栏的高度 */
  padding: 0;
  box-sizing: border-box;
  color: #000000e0;
  font-family: 'PingFang_SC';
  font-size: 28px;
  letter-spacing: 0px;
  font-weight: 400;
  overflow-x: hidden; /* 防止横向滚动 */
}

/* Header image section */
.header-image-container {
  align-self: stretch;
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  height: 200px;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background: #ffffff;
  overflow: hidden;
}

.header-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Content section */
.content-section {
  align-self: stretch;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0 16px;
  box-sizing: border-box;
}

/* Tag list */
.tag-list {
  flex-shrink: 0;
  display: inline-flex;
  align-items: flex-start;
  gap: 9px;
  color: transparent;
  font-family: 'Inter';
  font-size: 11px;
  line-height: 20px;
  font-weight: 500;
}

.tag-item {
  flex-shrink: 0;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  border: 1px solid #4096ff;
  padding: 0 5px;
  background: #e6f4ff;
  box-shadow: 0px 1px 2px 0px #00000008,0px 1px 5px -1px #00000005,0px 2px 3px 0px #00000005;
  border-radius: 6px;
}

.tag-item span {
  background: linear-gradient(120.31deg, #229df5 0%, #226df5 98.27%);
  background-clip: text;
  flex-shrink: 0;
  min-width: 32px;
}

/* Title and description */
.main-title {
  font-size: 20px;
  line-height: 30px;
  align-self: stretch;
  flex-shrink: 0;
}

.main-description {
  font-size: 13px;
  line-height: 23px;
  align-self: stretch;
  flex-shrink: 0;
}

/* Stats section */
.stats-container {
  align-self: stretch;
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-top: 18px;
}

.stat-item {
  flex-shrink: 0;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 6px;
}

.stat-value {
  font-size: 27px;
  line-height: 27px;
  color: #1677ff;
  flex-shrink: 0;
}

.stat-label {
  font-size: 11px;
  line-height: 16px;
  font-weight: 500;
  color: #000000a6;
  flex-shrink: 0;
  width: 90px;
}

/* Detailed content section */
.detailed-content {
  align-self: stretch;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 24px 16px;
  box-sizing: border-box;
  color: #000000e0;
  font-family: 'PingFang_SC';
  font-size: 14px;
  line-height: 25px;
  letter-spacing: 0px;
}

.content-title {
  font-size: 18px;
  line-height: 32px;
  align-self: stretch;
  flex-shrink: 0;
}

.content-text {
  font-size: 12px;
  line-height: 21px;
  align-self: stretch;
  flex-shrink: 0;
}

.content-image-placeholder {
  align-self: stretch;
  flex-shrink: 0;
  height: 186px;
  background-color: #00000040;
  border-radius: 12px;
  overflow: hidden;
}

/* Related cases section */
.related-cases {
  align-self: stretch;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 24px 0;
  box-sizing: border-box;
  border-radius: 24px;
  overflow: hidden;
}

.related-cases-title {
  line-height: 42px;
  text-align: center;
}

.cases-container {
  align-self: stretch;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 0 16px;
  line-height: 20px;
}

.case-card {
  align-self: stretch;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid #00000026;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
}

.case-card-image {
  align-self: stretch;
  flex-shrink: 0;
  height: 117px;
  background-color: #229df580;
  overflow: hidden;
}

.case-card-content {
  align-self: stretch;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
}

.case-card-title {
  font-size: 14px;
  align-self: stretch;
  flex-shrink: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.case-card-tag {
  flex-shrink: 0;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  border: 1px solid #4096ff;
  padding: 0 5px;
  background: #e6f4ff;
  box-shadow: 0px 1px 2px 0px #00000008,0px 1px 5px -1px #00000005,0px 2px 3px 0px #00000005;
  border-radius: 6px;
  color: transparent;
  font-family: 'Inter';
  font-size: 11px;
  font-weight: 500;
}

.case-card-tag span {
  background: linear-gradient(120.31deg, #229df5 0%, #226df5 98.27%);
  background-clip: text;
  flex-shrink: 0;
  min-width: 32px;
}

/* Table styles */
.mobile-container table,
.detailed-content table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0;
  margin-bottom: 24px;
}

.mobile-container table:last-child,
.detailed-content table:last-child {
  margin-bottom: 24px;
}

.mobile-container table, .mobile-container th, .mobile-container td,
.detailed-content table, .detailed-content th, .detailed-content td {
  border: 1px solid #00000026;
}

.mobile-container th, .mobile-container td,
.detailed-content th, .detailed-content td {
  padding: 15px;
  text-align: left;
}

/* List styles */
.mobile-container ul,
.detailed-content ul {
  width: 100%;
  list-style-type: disc;
  padding-left: 20px;
  margin-top: 0;
  margin-bottom: 16px;
}

.mobile-container ol,
.detailed-content ol {
  list-style-type: decimal;
  padding-left: 20px;
  margin-top: 0;
  margin-bottom: 16px;
}

.mobile-container li,
.detailed-content li {
  padding-left: 5px;
  margin-bottom: 8px;
}

.mobile-container li:last-child,
.detailed-content li:last-child {
  margin-bottom: 0;
}

.mobile-container ul:last-child,
.mobile-container ol:last-child,
.detailed-content ul:last-child,
.detailed-content ol:last-child {
  margin-bottom: 0;
}

/* Main content styles - 移动端正文内容 */
.detailed-content h2 {
  font-size: 24px;
  line-height: 42px;
  font-weight: 600;
  align-self: stretch;
  flex-shrink: 0;
  margin-top: 0;
  margin-bottom: 24px;
}

.detailed-content h3 {
  font-size: 20px;
  line-height: 32px;
  font-weight: 600;
  align-self: stretch;
  flex-shrink: 0;
  margin-top: 0;
  margin-bottom: 18px;
}

.detailed-content h4 {
  font-size: 18px;
  line-height: 28px;
  font-weight: 600;
  align-self: stretch;
  flex-shrink: 0;
  margin-top: 0;
  margin-bottom: 16px;
}

.detailed-content h5 {
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  align-self: stretch;
  flex-shrink: 0;
  margin-top: 0;
  margin-bottom: 12px;
}

.detailed-content h6 {
  font-size: 14px;
  line-height: 22px;
  font-weight: 600;
  align-self: stretch;
  flex-shrink: 0;
  margin-top: 0;
  margin-bottom: 8px;
}

.detailed-content p {
  font-size: 16px;
  line-height: 28px;
  align-self: stretch;
  flex-shrink: 0;
  margin-top: 0;
  margin-bottom: 24px;
}

.detailed-content .image-placeholder {
  align-self: stretch;
  flex-shrink: 0;
  height: 248px;
  background-color: #00000040;
  border-radius: 16px;
  overflow: hidden;
  margin-top: 0;
  margin-bottom: 16px;
}

/* 确保所有图片和内容不会超出容器 */
.mobile-container img,
.detailed-content img {
  max-width: 100%;
  height: auto;
  display: block;
}

.mobile-container *,
.detailed-content * {
  max-width: 100%;
  box-sizing: border-box;
}

/* Quote block styles */
.mobile-container blockquote,
.detailed-content blockquote {
  margin: 16px 0;
  padding: 12px 16px;
  border-left: 4px solid #22A1F5;
  background-color: #F4F6F9;
  border-radius: 4px;
  font-style: italic;
  color: #646B77;
}

.mobile-container blockquote:last-child,
.detailed-content blockquote:last-child {
  margin-bottom: 0;
}

.mobile-container blockquote p,
.detailed-content blockquote p {
  margin-bottom: 8px;
}

.mobile-container blockquote p:last-child,
.detailed-content blockquote p:last-child {
  margin-bottom: 0;
}

/* Code block styles */
.mobile-container pre,
.detailed-content pre {
  margin: 24px 0;
  padding: 12px 16px;
  background-color: #F4F6F9;
  border-radius: 4px;
  overflow-x: auto;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  line-height: 20px;
}

.mobile-container code,
.detailed-content code {
  background-color: #F4F6F9;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
  font-size: 14px;
}

.mobile-container pre code,
.detailed-content pre code {
  background-color: transparent;
  padding: 0;
}

/* Image styles */
.mobile-container img,
.detailed-content img {
  margin-top: 0;
  margin-bottom: 24px;
}

.mobile-container img:last-child,
.detailed-content img:last-child {
  margin-bottom: 24px;
}

/* Horizontal rule */
.mobile-container hr,
.detailed-content hr {
  margin: 20px 0;
  border: none;
  border-top: 1px solid #E9ECF1;
}

/* Paragraph spacing adjustments */
.mobile-container p + p,
.detailed-content p + p {
  margin-top: 0;
}

.mobile-container h2 + p,
.mobile-container h3 + p,
.mobile-container h4 + p,
.mobile-container h5 + p,
.mobile-container h6 + p,
.detailed-content h2 + p,
.detailed-content h3 + p,
.detailed-content h4 + p,
.detailed-content h5 + p,
.detailed-content h6 + p {
  margin-top: 0;
}

/* WordPress 编辑器默认样式 - 对齐类（移动端） */
.alignleft {
  float: none;
  display: block;
  margin: 0 auto 16px auto;
  text-align: center;
}

.alignright {
  float: none;
  display: block;
  margin: 0 auto 16px auto;
  text-align: center;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  margin-bottom: 16px;
}

.alignwide {
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.alignfull {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}

/* 文本对齐 */
.has-text-align-left {
  text-align: left;
}

.has-text-align-center {
  text-align: center;
}

.has-text-align-right {
  text-align: right;
}

.has-text-align-justify {
  text-align: justify;
}

/* 图片对齐（移动端） */
.mobile-container img.alignleft,
.detailed-content img.alignleft {
  float: none;
  display: block;
  margin: 0 auto 16px auto;
}

.mobile-container img.alignright,
.detailed-content img.alignright {
  float: none;
  display: block;
  margin: 0 auto 16px auto;
}

.mobile-container img.aligncenter,
.detailed-content img.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 16px;
}

.mobile-container img.alignnone,
.detailed-content img.alignnone {
  display: block;
  margin-bottom: 16px;
}

/* 图片说明（移动端） */
.wp-caption {
  max-width: 100%;
  margin-bottom: 16px;
}

.wp-caption img {
  display: block;
  max-width: 100%;
  height: auto;
  margin-bottom: 0;
}

.wp-caption-text {
  font-size: 12px;
  line-height: 1.5;
  color: #666;
  text-align: center;
  padding: 8px 0;
  margin-top: 8px;
}

.wp-caption.alignleft,
.wp-caption.alignright {
  float: none;
  display: block;
  margin: 0 auto 16px auto;
}

.wp-caption.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 16px;
}

/* 图片库（移动端） */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 16px 0;
}

.gallery-item {
  margin: 0;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 0;
}

.gallery-caption {
  font-size: 12px;
  line-height: 1.5;
  color: #666;
  text-align: center;
  padding: 8px 0;
  margin-top: 8px;
}

/* 清除浮动 */
.clearfix::after,
.mobile-container::after,
.detailed-content::after {
  content: "";
  display: table;
  clear: both;
}