/* 重置样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px; /* 设置rem的基准单位为16px */
}

body {
  font-family: "Microsoft YaHei", "Hiragino Sans GB", "WenQuanYi Micro Hei", sans-serif;
  line-height: 1.6;
  color: #000;
  background-color: #fff;
}

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

/* 评论晒图样式 */
.comment-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  margin: 10px 0;
  display: inline-block;
}

a {
  color: #4292e0;
  text-decoration: none;
}

/* 电话链接样式 */
.phone-link {
  text-decoration: none;
}

/* 容器 */
.container {
  max-width: 640px;
  margin: 0 auto;
  padding: 0.9375rem;
}

/* 头部样式 */
.page-header {
  margin-bottom: 0.625rem;
}

.main-title {
  font-size: 1.5625rem; 
  line-height: 1.6;
  margin-top: 0;
  margin-bottom: 1.25rem;
  font-weight: bold;
}

.author-info {
  display: flex;
  align-items: center;
  margin-bottom: 1.25rem;
}

.author-avatar {
  position: relative;
  margin-right: 0.4rem; 
}

.author-avatar img {
  width: 3.5rem; 
  height: 3.5rem; 
  border-radius: 50%;
}

.author-badge {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 1.125rem;
  height: 1.125rem;
  background: url('../images/VIP_3.png') no-repeat center;
  background-size: cover;
}

.verified-badge-small {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 0.875rem;
  height: 0.875rem;
  background: url('../images/VIP_1.png') no-repeat center;
  background-size: cover;
}

.author-details {
  flex: 1;
}

.author-name {
  font-size: 0.9rem; 
  margin-bottom: 0.3125rem;
  font-weight: 500;
}

.author-meta {
  font-size: 0.8rem;
  color: #999;
}

.verified-btn {
  background-color: #4292e0;
  color: #fff;
  border: none;
  border-radius: 20px;
  width: 3.5rem;
  height: 1.8rem;
  line-height: 1.8rem;
  font-size: 0.75rem;
  margin-left: auto;
  cursor: pointer;
}

/* 文章内容样式 */
.article-content {
  margin-bottom: 1.875rem;
}

.article-content p {
  text-indent: 2em;
  font-size: 1rem;
  line-height: 1.7;
  display: block;
  margin-block-start: 0.7em;
  margin-block-end: 0.7em;
  margin-inline-start: 0px;
  margin-inline-end: 0px;
  unicode-bidi: isolate;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
}

.article-content img {
  display: block;
  margin: 0 3px 0;
  max-width: 100%;
}

.article-content ul, .article-content ol {
  margin: 1rem 0;
  padding-left: 0;
}

.article-content ul {
  counter-reset: item;
}

.article-content ul li {
  margin-bottom: 0.75rem;
  position: relative;
  padding-left: 1.5rem;
  list-style-type: none;
  line-height: 1.6;
  text-indent: 2em;
}

.article-content ul li::before {
  content: "•";
  color: #000;
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1.125rem;
}

.article-content ol li {
  display: block;
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.75rem;
  line-height: 1.6;
  text-indent: 0;
  list-style-type: none;
}

.article-content ol li::before {
  content: counter(item) ".";
  counter-increment: item;
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 600;
  color: #4292e0;
  text-align: right;
  width: 1.5rem;
}

.article-content h3 {
  font-size: 1.25rem;
  color: #1a1a1a;
  margin: 1.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.article-content h3::before {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 2.5rem;
  height: 3px;
  background-color: #4292e0;
}

.article-content h4 {
  font-size: 1.125rem;
  color: #333;
  margin: 1.2rem 0 0.8rem;
  font-weight: 600;
  position: relative;
  padding-left: 0;
}

.article-content ul li strong, .article-content ol li strong {
  color: #333;
  font-weight: 600;
  font-size: 1.0625rem;
}

/* 图片相关样式 */
.article-image, .image-container {
  margin: 1.25rem 0;
  text-align: center;
}

.article-image img, .image-container img {
  margin: 0 auto 0.3125rem;
}

.image-caption, .image-container p {
  text-align: center;
  color: #666;
  font-size: 0.875rem !important;
  margin-top: 0.5rem;
  text-indent: 0;
}

/* 床垫核心逻辑列表样式 */
.logic-item {
  margin-bottom: 1rem;
}

.logic-item strong {
  display: block;
  margin-bottom: 0.5rem;
}

.logic-item-content {
  display: block;
  padding-left: 2.5em;
  text-indent: 0;
}

/* 文章统计 */
.article-stats {
  display: flex;
  align-items: center;
  margin: 0.75rem 0;
  font-size: 0.875rem;
  color: #888;
  line-height: 1;
  padding: 0.5rem 0;
}

.read-count, .like-count, .copyright {
  margin-right: 1.25rem;
  display: flex;
  align-items: center;
}

.like-icon {
  width: 0.875rem;
  height: 0.875rem;
  margin-right: 0.25rem;
  display: inline-block;
  vertical-align: middle;
}

/* 点赞列表样式 */
.likes-title {
  font-size: 1rem;
  font-weight: bold;
  margin: 1.5rem 0 1rem 0;
  color: #000;
}

.avatar-list {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 10px;
  margin-bottom: 1.5rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.avatar-list::-webkit-scrollbar {
  display: none;
}

.avatar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-right: 1.5625rem;
  flex: 0 0 auto;
  width: 50px;
  text-align: center;
}

.avatar-item img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: none;
  margin: 0 auto;
}

.avatar-name {
  font-size: 0.7rem;
  color: #333;
  margin-top: 5px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  line-height: 1.2;
}

/* 评论区样式 */
.comments-section {
  margin-bottom: 0.5rem;
}

.comments-title {
  font-size: 1.125rem;
  font-weight: bold;
  color: #06c;
  margin-bottom: 1.25rem;
  padding: 0.625rem 0;
  border-bottom: 0.0625rem solid #eee;
}

.comment {
  margin-bottom: 0.9375rem;
}

.comment-header {
  display: flex;
  background-color: #f7f7f7;
  padding: 0.315rem 0.9375rem; 
  position: relative;
  align-items: center;
}

.commenter-avatar {
  position: relative;
  margin-right: 0.625rem;
}

.commenter-avatar img {
  width: 2.1875rem;
  height: 2.1875rem;
  border-radius: 50%;
}

.commenter-info {
  flex: 1;
}

.commenter-name {
  color: #008cd7;
  font-size: 0.875rem;
  margin: 0;
}

.comment-meta {
  font-size: 0.75rem;
  color: #999;
  margin: 0;
}

.comment-rank-container {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.comment-rank {
  display: inline-block;
  background-color: #ff6b6b;
  color: #fff;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: bold;
}

.comment-content {
  padding: 0.9375rem;
}

.comment-content p {
  text-indent: 2em;
  font-size: 1rem !important;
  line-height: 1.8;
}

.comment-image {
  text-align: center;
  margin: 0.625rem auto; 
  width: 70%;
}

.comment-reply {
  padding: 0.625rem 0.9375rem;
  margin-left: 2rem;
  font-size: 1rem;
  line-height: 1.6;
}

.replier {
  color: #008cd7;
  font-weight: bold;
}

/* 页脚和版权信息样式 */
.footer {
  margin-top: 2.5rem;
}

.copyright-info {
  text-align: center;
}

.copyright-info p {
  font-size: 0.75rem;
  text-indent: 0;
  color: #ccc;
}

/* 响应式样式 */
@media (min-width: 768px) {
  .container {
    max-width: 640px;
  }
  
  .action-button {
    width: 60%;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (min-width: 992px) {
  .article-content p,
  .comment-content p {
    font-size: 1.125rem;
  }
} 
/* 商品推荐卡片样式 */
.product-recommendation-card {
    background-color: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    margin: 2rem 0;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.product-card-container {
    display: flex;
    align-items: stretch;
    height: 120px;
}

.product-image-section {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.product-image-section img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
    margin: 0;
    box-shadow: none;
}

.product-info-section {
    flex: 1;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.product-title {
    font-size: 14px;
    font-weight: 400;
    color: #333;
    line-height: 1.2;
    margin: 0 0 4px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-indent: 0;
}

.product-platform {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.platform-icon {
    width: 16px;
    height: 16px;
    margin-right: 4px;
    border-radius: 2px;
}

.platform-name {
    font-size: 12px;
    color: #666;
    font-weight: 400;
}

.product-pricing {
    /* margin-bottom: 1px; */
}

.current-price {
    font-size: 18px;
    font-weight: 700;
    color: #e4393c;
    font-family: Arial, sans-serif;
}

.product-action {
    position: absolute;
    bottom: 12px;
    right: 16px;
}

.buy-button-link {
    text-decoration: none;
    display: inline-block;
}

.buy-button {
    background-color: #e4393c;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}

.buy-button:hover,
.buy-button-link:hover .buy-button {
    background-color: #e55a00;
}