/* 软件内容区域布局样式 */

/* 主要内容区域容器 */
.software-content-area {
  max-width: 100%;
  margin: 0 auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: visible; /* 让内容可以滑动到导航栏后面 */
  /* 覆盖grid布局，确保sticky定位正常工作 */
  display: block !important;
  position: relative;
}





/* 内容区域 - 所有内容直接展示 */
.content-area {
  position: relative;
}

.content-section {
  padding: 20px;
  margin-bottom: 30px;
  border-bottom: 1px solid #e9ecef;
}

.content-section:last-child {
  margin-bottom: 0;
  border-bottom: none;
}

/* 内容区域标题 */
.content-section h2 {
  font-size: 20px;
  font-weight: 600;
  color: #212529;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #ff6b35;
  display: inline-block;
}

.content-section h3 {
  font-size: 18px;
  font-weight: 600;
  color: #495057;
  margin-bottom: 15px;
}

/* 软件介绍区域 */
.software-introduction {
  margin-bottom: 30px;
}

.intro-text {
  font-size: 14px;
  line-height: 1.6;
  color: #495057;
}

/* iOS版本介绍 */
.ios-version-intro {
  margin-bottom: 40px;
}

.intro-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 600;
  color: #212529;
  margin-bottom: 16px;
}

.heading-bar {
  color: #ff6b35;
  font-weight: bold;
}

.intro-content {
  font-size: 14px;
  line-height: 1.6;
  color: #495057;
}

/* 大型视觉内容区域 */
.visual-content-section {
  position: relative;
  margin: 40px 0;
}

.visual-container {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

/* 背景角色 */
.background-characters {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.characters-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.default-characters-bg {
  width: 100%;
  height: 400px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  position: relative;
}

.default-characters-bg::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 10%;
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
}

.default-characters-bg::after {
  content: '';
  position: absolute;
  top: 60%;
  right: 15%;
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
}

/* 手机应用截图覆盖层 */
.app-screenshot-overlay {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
}

.phone-frame {
  width: 280px;
  height: 500px;
  background: #000;
  border-radius: 25px;
  padding: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
}

/* 状态栏 */
.status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
  background: #000;
  color: #fff;
  font-size: 10px;
  font-weight: 500;
}

/* 应用导航栏 */
.app-nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
}

.nav-tabs {
  display: flex;
  gap: 20px;
}

.nav-tab-item {
  font-size: 14px;
  color: #666;
  cursor: pointer;
  padding: 4px 0;
  position: relative;
}

.nav-tab-item.active {
  color: #ff6b35;
  font-weight: 600;
}

.nav-tab-item.active::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #ff6b35;
}

.post-btn {
  background: #ff6b35;
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 12px;
  cursor: pointer;
}

/* 交互横幅 */
.interaction-banner {
  margin: 16px;
  background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}

.banner-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.chibi-characters {
  display: flex;
  gap: 8px;
}

.chibi-icon {
  font-size: 20px;
}

.banner-text {
  font-size: 12px;
  color: #fff;
  font-weight: 500;
}

.interaction-btn {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 10px;
  cursor: pointer;
}

/* 热门圈子 */
.popular-circles {
  margin: 16px;
}

.circles-title {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 12px;
}

.circles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.circle-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  background: #f8f9fa;
  border-radius: 8px;
}

.circle-icon {
  width: 24px;
  height: 24px;
  background: #ff6b35;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
}

.circle-info {
  flex: 1;
}

.circle-name {
  font-size: 10px;
  font-weight: 500;
  color: #333;
  margin-bottom: 2px;
}

.circle-participants {
  font-size: 8px;
  color: #666;
}

/* 用户推荐 */
.user-recommendation {
  margin: 16px;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 8px;
}

.user-avatar {
  width: 32px;
  height: 32px;
  background: #ff6b35;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.user-info {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.username {
  font-size: 12px;
  font-weight: 500;
  color: #333;
}

.follow-btn {
  background: #ff6b35;
  color: #fff;
  border: none;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 10px;
  cursor: pointer;
}

/* 内容分类 */
.content-category {
  margin: 16px;
}

.category-title {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

/* 同好圈子横幅 */
.like-minded-banner {
  margin: 16px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  color: #fff;
}

.banner-text-large {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 4px;
}

.banner-subtitle {
  font-size: 12px;
  opacity: 0.9;
}

/* 内容网格 */
.content-grid {
  margin: 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.grid-item {
  aspect-ratio: 1;
  background: #f8f9fa;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #666;
}

/* 其他内容区域样式 */
.screenshots-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.screenshot-item img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.no-screenshots {
  text-align: center;
  color: #666;
  padding: 40px;
}

.related-topics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.topic-item {
  padding: 16px;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #ff6b35;
}

.topic-item h4 {
  margin: 0 0 8px 0;
  color: #333;
  font-size: 16px;
}

.topic-item p {
  margin: 0;
  color: #666;
  font-size: 14px;
  line-height: 1.5;
}

.no-topics {
  text-align: center;
  color: #666;
  padding: 40px;
}

.download-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.download-link-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.link-info h4 {
  margin: 0 0 4px 0;
  color: #333;
  font-size: 16px;
}

.link-info p {
  margin: 0;
  color: #666;
  font-size: 14px;
}

.download-link-btn {
  background: #ff6b35;
  color: #fff;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s ease;
}

.download-link-btn:hover {
  background: #e55a2b;
  color: #fff;
  text-decoration: none;
}

.download-link-btn.official {
  background: #28a745;
}

.download-link-btn.official:hover {
  background: #218838;
}

.comments-section {
  min-height: 200px;
}

.no-comments {
  text-align: center;
  color: #666;
  padding: 40px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  
  .phone-frame {
    width: 240px;
    height: 420px;
  }
  
  .circles-grid {
    grid-template-columns: 1fr;
  }
  
  .content-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .download-link-item {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  
  .content-section {
    padding: 15px;
    margin-bottom: 20px;
  }
  
  .content-section h2 {
    font-size: 18px;
    margin-bottom: 15px;
  }
}

@media (max-width: 480px) {
  .software-content-area {
    border-radius: 0;
  }
  
  .phone-frame {
    width: 200px;
    height: 360px;
  }
  
  .content-grid {
    grid-template-columns: 1fr;
  }
  
  .content-section {
    padding: 10px;
    margin-bottom: 15px;
  }
  
  .content-section h2 {
    font-size: 16px;
    margin-bottom: 10px;
  }
} 