body { 
      font-family: sans-serif; 
      padding: 0; 
      margin: 0; 
      background: #f5f5f5; 
      /* background: url('您的图片路径.jpg') no-repeat center center fixed; */
      background-size: cover;
      /* 如果需要在背景图上添加半透明遮罩以提高文字可读性 */
      position: relative;
    }

    html.lang-pending [data-lang] {
      visibility: hidden;
    }
    .main-container { 
      width: 70%; 
      margin: 0 auto; 
      display: flex; 
      align-items: flex-start;
      gap: 10px;
      background-color: #fff;
      padding: 30px;
      border-radius: 16px;
    }

    /* 超大屏幕 (1920px+) - 固定大边距 */
    @media (min-width: 1920px) {
      .header-container, .hero-section, .main-container, .footer-bar, .gallery-section, .qa-section {
        width: 70% !important;
      }
    }

    /* 大屏幕 (1440px-1919px) - 保持当前设计 */
    @media (min-width: 1440px) and (max-width: 1919px) {
      .header-container, .hero-section, .main-container, .footer-bar, .gallery-section, .qa-section {
        width: 90% !important;
      }
    }

    /* 笔记本/iPad横屏 (1024px-1439px) - 动态过渡 */
    @media (min-width: 1024px) and (max-width: 1439px) {
      .header-container, .hero-section, .main-container, .footer-bar, .gallery-section, .qa-section {
        width: calc(100vw - 120px);
        max-width: 94%;
      }
    }

    /* iPad竖屏/小笔记本 (768px-1023px) - 小边距 */
    @media (min-width: 768px) and (max-width: 1023px) {
      .header-container, .hero-section, .main-container, .footer-bar, .gallery-section, .qa-section {
        width: calc(100vw - 80px);
        max-width: 94%;
      }
    }

    @media (max-width: 1280px) {
      .social-tab-text {
        display: none !important;
      }
    }
    
    .left-section { 
      width: 70%; 
      display: flex;
      flex-direction: column;
      /* background-color: #0095f6; */
      gap: 5px;
      justify-content: flex-start; /* 确保内容从顶部开始 */
      align-items: flex-start;     /* 取消默认的拉伸对齐 */
      align-content: flex-start;   /* 添加这行 */
      height: auto;                /* 添加这行，避免被拉伸 */
      min-height: 0;               /* 添加这行，重置最小高度 */

    }


    .middle-section { 
      width: 5%; 
      display: flex;
      flex-direction: column;
      background-color:rgb(40, 90, 143);
    }
    
    .right-section { 
      width: 25%; 
      display: flex;
      flex-direction: column;
      /* background-color:rgb(246, 0, 152); */

    }
    
    .controls {
      padding: 10px;
      background: #fff;
      border-radius: 8px;
      margin-bottom: 20px;
      box-shadow: 0 2px 4px rgba(0,0,0,0.1);
      margin-top: 20px; 

    }
    
   


        .crop-area { 
          width: 100%; 
          padding: 10px; 
          box-sizing: 
          border-box;
          position: relative;
          border-radius: 8px;
        }

    
    .drop-zone {
      position: absolute;
      top: 10px;
      left: 0px;
      right: 0px;
      bottom: 80px;
      border: 2px dashed #d1d5db;
      border-radius: 8px;
      background: rgba(249, 250, 251, 0.8);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 10;
      transition: all 0.3s ease;
    }
    
    .drop-zone.hidden {
      display: none;
    }
    
    .drop-zone.drag-over {
      border-color: #3b82f6;
      background: rgba(59, 130, 246, 0.1);
      border-style: solid;
    }
    
    .drop-content {
      text-align: center;
      color: #6b7280;
    }
    
    .drop-icon {
      width: 48px;
      height: 48px;
      margin: 0 auto 16px;
      color: #9ca3af;
    }
    
    .drop-text {
      font-size: 18px;
      font-weight: 500;
      margin: 0 0 8px 0;
      color: #374151;
    }
    
    .drop-subtext {
      font-size: 14px;
      margin: 0;
      color: #6b7280;
    }
    
    .preview-header {
      border-radius: 8px 8px 0 0;
      padding: 38px 20px 0 20px;  /* 控制tab与上方的间距 */
    }
    
    .preview-header h3 {
      margin: 0 0 15px 0;
    }
    
    canvas { 
      border: 1px solid #ccc; 
      display: block; 
      max-width: 100%;
      width: 100%; 
      cursor: move;
      margin: 0 !important; /* 强制清除所有外边距（原为100px） */
    }
    
   
    
    .social-tabs {
      display: flex;
      margin: 0;
    }
    
    input, select, button { margin: 5px; }
    h1 { text-align: center; margin: 20px 0; }
    .zoom-controls { margin-top: 10px; }
    .zoom-controls button { margin-right: 10px; }
    .container { width: 80%; margin: 0 auto; display: flex; }
    /* .crop-area { width: 100%; padding: 0px; box-sizing: border-box;background-color: #0095f6; } */
    .preview-area { width: 25%; padding: 20px; box-sizing: border-box; }
    .phone-preview { 
      border: 10px solid #333; 
      border-radius: 40px; 
      overflow-y: auto; /* 修改为可滚动 */
      margin-top: 20px; 
      background: #fff; 
      /* 设置9:16的比例 */
      aspect-ratio: 9/16;
      display: flex;
      flex-direction: column;
      box-shadow: 0 4px 8px rgba(0,0,0,0.2);

    }
    canvas { border: 0px solid #ccc; display: block; margin-top: 100px; max-width: 100%; cursor: move; }
    input, select, button { margin: 5px; }
    .zoom-controls { margin-top: 10px; }
    .zoom-controls button { margin-right: 10px; }
    
    /* 社交媒体预览样式 */
    .social-tabs {
      display: flex;
      margin-bottom: 10px;
    }
    .social-tab {
      padding: 8px 15px;
      background: #f0f0f0;
      border: 1px solid #ddd;
      cursor: pointer;
      flex: 1;
      text-align: center;
    }
    .social-tab.active {
      /* background: #fff; */ /* 注释掉这行 */
      border-bottom: none;
      font-weight: bold;
      transform: scale(1.02);
      z-index: 10;
    }
    .social-content {
      display: flex;
      flex-direction: column;
      min-height: 100%; /* 确保内容至少填满容器高度 */
    }
    .social-header {
      height: 40%; /* 修改为40%，使图片区域占60% */
      border-bottom: 0px solid #eee;
      display: flex;
      flex-direction: column;
      padding: 10px;
      box-sizing: border-box;
      /* 移除overflow-y: auto，因为整个预览区已经可滚动 */
    }
    .social-grid {
      height: 60%; /* 修改为60%，实现2:3的比例 */
      display: flex;
      flex-direction: column;
    }
    .grid-container {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      align-items: flex-start;
      height: auto;
      /* 移除max-height: 100%和overflow-y: auto，因为整个预览区已经可滚动 */
      padding: 0px; 
    }
    .grid-item {
      background-size: cover;
      background-position: center;
      margin: 1px;
      box-sizing: border-box;
    }
    .grid-item.disabled {
      background: #ddd;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #666;
      text-align: center;
      font-size: 0.8em;
      padding: 10px;
    }
    .platform-logo {
      font-size: 24px;
      font-weight: bold;
      margin-bottom: 20px;
    }
    .platform-text {
      color: #666;
      font-size: 14px;
    }
    
    /* 新增社交媒体头部样式 */
    .profile-header {
      display: flex;
      align-items: center;
      padding: 10px;
      border-bottom: 0px solid #eee;
    }
    .profile-avatar {
      width: 80px;
      height: 80px;
      border-radius: 50%;
      background-color: #f0f0f0;
      background-size: cover;
      margin-right: 10px;
      overflow: hidden;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: bold;
      color: #666;
    }
    .profile-info {
      flex: 1;
    }
    .profile-username {
      font-weight: bold;
      font-size: 14px;
      margin-bottom: 2px;
    }
    .profile-action {
      color: #0095f6;
      font-size: 12px;
      font-weight: bold;
    }
    
    .post-header {
      padding: 10px;
      display: flex;
      align-items: center;
    }
    .post-avatar {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      background-color: #f0f0f0;
      margin-right: 10px;
      overflow: hidden;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: bold;
      color: #666;
    }
    .post-username {
      font-weight: bold;
      font-size: 13px;
    }
    
    .post-actions {
      padding: 10px;
      display: flex;
      align-items: center;
    }
    .post-likes {
      font-weight: bold;
      font-size: 13px;
      margin-top: 5px;
    }
    .post-caption {
      padding: 0 10px;
      font-size: 13px;
      margin-bottom: 5px;
    }
    .post-caption span {
      font-weight: bold;
    }
    
    /* TikTok特有样式 */
    .tiktok-header {
      background-color: #000;
      color: white;
      padding: 10px;
    }
    .tiktok-username {
      color: white;
      font-weight: bold;
    }
    .tiktok-description {
      color: rgba(255,255,255,0.8);
      font-size: 12px;
      margin-top: 5px;
    }
    .tiktok-stats {
      display: flex;
      margin-top: 10px;
      color: white;
    }
    .tiktok-stat {
      margin-right: 15px;
      font-size: 12px;
    }
    .tiktok-stat span {
      font-weight: bold;
      display: block;
    }
    
    /* 导航栏样式 */
    .header-container {
      width: clamp(90%, 100vw - 160px, 75%);
      margin: 0 auto;
      padding: 20px 0px;
      /* background-color: #fff; */
      border-bottom: 0px solid #e5e5e5; /* 添加浅灰色分割线 */

    }
    
    .navbar {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    
    .nav-left {
      display: flex;
      align-items: center;
    }
    
    .nav-items {
      display: flex;
      align-items: center;
      gap: 4px; /* Space between buttons */
      margin-left: 24px;
      padding-left: 24px;
      border-left: 1px solid #e5e7eb; /* Vertical divider */
      height: 24px; /* Height of the divider */
    }

    .nav-link {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      height: 36px; /* Fixed height for consistency */
      padding: 0 16px;
      text-decoration: none;
      color: #64748b; /* Neutral text color */
      font-weight: 500;
      border-radius: 8px;
      transition: all 0.2s ease;
      font-size: 14px;
      white-space: nowrap;
    }

    .nav-link:hover {
      color: #0f172a; /* Darker text on hover */
      background-color: #f1f5f9; /* Light gray background */
    }

    .nav-link.active {
      color: #ffffff;
      background-color: #2563eb;
      font-weight: 600;
    }

    .nav-link.active:hover {
      color: #ffffff;
      background-color: #1d4ed8;
    }
    
    .logo-text {
      font-size: 28px;
      font-weight: bold;
      color:rgba(0, 0, 0, 0.68);
      letter-spacing: 1px;
    }
    
    .logo-subtitle {
      font-size: 24px;
      font-weight: 300;
      color: #666;
      letter-spacing: 1px;
    }
    
    .site-logo {
      height: 50px; /* 根据需要调整高度 */
      width: auto;
      object-fit: contain;
    }
    
    .language-selector {
      position: relative;
    }
    
    .language-btn {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 8px 12px;
      background: none;
      border: 1px solid #ddd;
      border-radius: 6px;
      cursor: pointer;
      transition: all 0.2s;
    }
    
    .language-btn:hover {
      background-color: #f5f5f5;
      border-color: #ccc;
    }
    
    .flag-icon {
      width: 24px;
      height: 16px;
      border-radius: 2px;
    }
    
    .dropdown-icon {
      width: 16px;
      height: 16px;
      color: #666;
    }
    
    .language-menu {
      position: absolute;
      top: 100%;
      right: 0;
      background: white;
      border: 1px solid #ddd;
      border-radius: 6px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.1);
      min-width: 120px;
      z-index: 1000;
      display: none;
    }
    
    .language-menu.show {
      display: block;
    }
    
    .language-option {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 10px 12px;
      cursor: pointer;
      transition: background-color 0.2s;
    }
    
    .language-option:hover {
      background-color: #f5f5f5;
    }
    
    .language-option:first-child {
      border-radius: 6px 6px 0 0;
    }
    
    .language-option:last-child {
      border-radius: 0 0 6px 6px;
    }
    
    .language-option span {
      font-size: 14px;
      color: #333;
    }
    
    /* 宣传语区域样式 */
    .hero-section {
      width: clamp(90%, 100vw - 160px, 75%);
      margin: 0 auto;
      padding: 10px 40px 40px 40px;
      /* background-color: #fff; */
    }
    
    /* 画廊区域样式 */
    .gallery-section {
      margin-top: 120px;
      width: clamp(90%, 100vw - 160px, 75%);
      margin: 0 auto;
      padding: 80px 0;
    }
    
    /* 问答区域样式 */
    .qa-section {
      width: clamp(90%, 100vw - 160px, 75%);
      margin: 0 auto;
      padding: 60px 0;
    }
    
    .hero-title-elegant {
      font-size: 50px;
      font-weight: 900;
      color: #000;
      text-align: center;
      line-height: 1.4;
      margin: 0;
      padding: 15px 0;
      max-width: 100%;
    }

    .hero-title-elegant h3 {
      margin: 0;
      padding: 0;
      white-space: nowrap;
      overflow: hidden;
      font-size: clamp(18px, 4.8vw, 50px);
      line-height: 1.2;
    }
    
    .hero-title-elegant strong {
      font-weight: 600;
      color: #2563eb;
    }
    
    .hero-title-elegant .subtitle {
      font-size: 22px;
      font-weight: 300;
      color: #000;
      display: block;
      padding: 10px 0;
    }

    body.has-uploaded-image .hero-section {
      padding: 10px 40px 12px 40px;
    }

    body.has-uploaded-image .hero-title-elegant {
      font-size: 28px;
      padding: 6px 0;
      line-height: 1.2;
    }

    body.has-uploaded-image .hero-title-elegant h3 {
      font-size: clamp(16px, 3.8vw, 28px);
    }

    body.has-uploaded-image .hero-title-elegant .subtitle {
      display: none;
    }
    
    @media (max-width: 768px) {

      .main-container, 
      .header-container {
        width: 90% !important;
      }




        .hero-title-elegant {
          font-size: 24px;
          padding: 8px 0;
          line-height: 1.25;
        }
        
        .hero-title-elegant .subtitle {
          font-size: 20px;
          padding: 6px 0 0 0;
          line-height: 1.3;
        }
      
      .navbar {
        padding: 0 15px;
        height: 60px;
      }
      
      .logo-text {
        font-size: 20px;
      }
      
      .hero-section {
        padding: 18px 12px 24px 12px;
      }

      body.has-uploaded-image .hero-section {
        padding: 10px 15px 12px 15px;
      }

      body.has-uploaded-image .hero-title-elegant {
        font-size: 18px;
      }

      body.has-uploaded-image .hero-title-elegant h3 {
        font-size: clamp(14px, 5vw, 18px);
      }

     
    }

    @media (max-width: 420px) {
      .header-container {
        padding: 10px 0px;
      }

      .navbar {
        height: 44px;
        flex-wrap: nowrap;
        gap: 6px;
        padding: 0 8px;
      }

      .nav-left {
        flex: 1;
        flex-wrap: nowrap;
        gap: 8px;
        min-width: 0;
      }

      .site-logo {
        width: 32px;
        height: 32px;
        object-fit: cover;
        object-position: left center;
      }

      .nav-items {
        margin-left: 8px;
        padding-left: 0;
        border-left: 0;
        height: 32px;
        gap: 4px;
      }

      .nav-link {
        height: 34px;
        padding: 0 10px;
        font-size: 13px;
      }

      .language-btn {
        padding: 6px 8px;
      }

      .flag-icon {
        width: 22px;
        height: 14px;
      }
    }

    @media (max-width: 360px) {
      .site-logo {
        width: 28px;
        height: 28px;
      }

      .nav-items {
        margin-left: 6px;
        gap: 2px;
      }

      .nav-link {
        padding: 0 8px;
        font-size: 12px;
      }

      .language-btn {
        padding: 5px 6px;
      }
    }


    .icon-row {
  border-bottom: 1px solid #eee;
}





.footer-bar {
  width: clamp(90%, 100vw - 160px, 75%);
  margin: 60px auto 0 auto; /* 将上边距从0改为60px */
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 30px 0 76px 0;
  font-size: 12px;
  color: #222;
  box-sizing: border-box;
  background: none;
  border-top: 1px solid #e5e5e5; /* 添加浅灰色分割线 */

}
.footer-section {
  flex: 1;
  min-width: 220px;
  max-width: 33%;
  padding: 0 32px;
}
.footer-section.center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}


.footer-section:last-child {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.feedback-inner {
  width: 100%;
  max-width: 230px; /* 或你希望的宽度 */
  text-align: left;
}

.footer-title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 10px;
 
}
.footer-desc {
  color: #444;
  line-height: 1.7;
  
}
.footer-logo {
  margin-bottom: 8px;
}
.footer-copyright {
  color: #888;
  font-size: 14px;
}
@media (max-width: 768px) {

  .main-container {
    flex-direction: column !important;
    gap: 0;
    padding: 10px;
  }
  .left-section, .right-section {
    width: 100% !important;
    min-width: 0;
    max-width: 100%;
  }
  .left-section {
    order: 1;
    min-height: 40vh;
  }
  .right-section {
    order: 2;
    min-height: 40vh;
    margin-top: 20px;
  }
  .middle-section {
    display: none !important;
  }




  .footer-bar {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .footer-section {
    max-width: 100%;
    padding: 12px 0;
  }
}
