* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

.mainPage {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  -ms-overflow-style: none;
  overflow: -moz-scrollbars-none;
  -webkit-overflow-scrolling: touch;
}

.mainPage::-webkit-scrollbar {
  display: none;
}

.scrollContainer {
  overflow: auto;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.webHeader {
  max-width: 1000px;
  width: 100%;
  height: 50px;
  margin: 30px 0;
  margin-bottom: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 20px;
}



.searchRow {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 20px 0;
}

.inputContent {
  background-color: white;
  border-radius: 24px;
  border: 1px solid #dfe1e5;
  overflow: hidden;
  max-width: 1000px;
  width: 80%;
  height: 44px;
  display: flex;
  align-items: center;
  padding: 0 15px;
  transition: box-shadow 0.3s;
  box-shadow: 0 1px 6px rgba(32, 33, 36, 0.28);
}

.inputContent:hover,
.inputContent:focus-within {
  box-shadow: 0 2px 8px rgba(32, 33, 36, 0.45);
  border-color: rgba(223, 225, 229, 0);
}

.inputContent input {
  flex-grow: 1;
  height: 100%;
  border: none;
  outline: none;
  padding: 10px;
  font-size: 16px;
}

.searchIcon {
  height: 44px;
  width: 44px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.searchIcon svg {
  fill: #4285f4;
}

/* 转换工具容器样式 */
.container {
  width: calc(100% - 20px);
  max-width: 1000px;
  margin: 10px;
  text-align: center;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 20px;
}

.tab-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 20px;
}

.tab {
  flex-grow: 1;
  padding: 10px;
  cursor: pointer;
  font-size: 16px;
  color: #333;
  border: 1px solid #ccc;
  background-color: #f1f1f1;
  border-radius: 5px;
  margin: 5px;
  text-align: center;
}

.tab.active {
  background-color: #4a90e2;
  color: #fff;
}

.upload-area {
  height: 100px;
  border: 2px dashed #ccc;
  border-radius: 5px;
  padding: 20px;
  margin: 20px 0;
  color: #666;
  display: flex;
  justify-content: center;
  align-items: center;
}

.upload-area.dragging {
  border-color: #4a90e2;
  background-color: #f1f9ff;
}

.preview-area {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  overflow-x: auto;
  white-space: nowrap;
  width: 100%;
  padding-bottom: 10px;
  border-bottom: 1px solid #ddd;
}

.preview-card {
  display: inline-block;
  flex-shrink: 0;
  width: 120px;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  height: 120px;
}

.preview-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.status-container {
  width: 100%;
  height: 40px;
  position: absolute;
  bottom: 0;
  left: 0;
  text-align: center;
  display: none;
}

.download-button {
  width: 100%;
  height: 100%;
  background-color: #4a90e2;
  color: white;
  border: none;
  font-size: 14px;
  cursor: pointer;
}

.download-button:hover {
  background-color: #357abd;
}

.convert-fail {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  font-size: 14px;
  font-weight: bold;
}

.button-container {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.button {
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  font-size: 16px;
  border-radius: 5px;
}

.upload {
  background-color: #4a90e2;
  color: #fff;
}

.clear {
  background-color: #f44336;
  color: #fff;
}

.convert {
  background-color: #808080;
  color: #fff;
  cursor: not-allowed;
}

.convert.enabled {
  background-color: #4a90e2;
  cursor: pointer;
}

.download-all {
  padding: 10px 20px;
  font-size: 16px;
  color: #fff;
  background-color: #b0b0b0;
  cursor: not-allowed;
  border-radius: 5px;
}

.download-all.enabled {
  background-color: #4a90e2;
  cursor: pointer;
}

/* 新闻部分样式 */
.newsContent {
  margin: 20px auto;
  max-width: 1000px;
  width: calc(100% - 20px);
  background-color: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 1px 6px rgba(32, 33, 36, 0.28);
}

.title {
  line-height: 1;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 20px;
  padding: 10px 0;
  display: flex;
  align-items: center;
}

.title img {
  margin-right: 10px;
  width: 16px;
  height: 16px;
  object-fit: cover;
}

.newsItem {
  display: flex;
  margin: 0 0 18px 0;
  color: #666;
  cursor: pointer;
  transition: background-color 0.2s;
  border-radius: 8px;
}

.newsItem:hover {
  background-color: #f8f9fa;
}

.newsItem:nth-of-type(5n-4) {
  position: relative;
  width: 100%;
  height: 500px;
}

.newsItem .newsImg {
  background-color: rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
  width: 100px;
  height: 75px;
  object-fit: cover;
  margin-right: 16px;
  border-radius: 8px;
}

.newsItem:nth-of-type(5n-4) .newsImg {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.newsItem .newContent {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.newsItem:nth-of-type(5n-4) .newContent {
  position: absolute;
  color: white;
  bottom: 0;
  width: 100%;
  padding: 20px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
}

.newTitle {
  line-height: 1.4;
  max-height: 2.8em;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-weight: bold;
}

.newSource {
  display: flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  padding: 2px 4px;
  font-size: 0.95em;
  border-radius: 4px;
  margin-top: 8px;
  color: #666;
}

.newSource i {
  font-size: 12px;
  color: #4a90e2;
}

.newsItem:nth-of-type(5n-4) .newSource i {
  color: #fff;
}

@media screen and (max-width: 500px) {
  .newsItem:nth-of-type(5n-4) {
    height: 200px;
  }

  .inputContent {
    width: 90%;
  }

  .newsContent {
    padding: 10px;
  }

  .newsItem .newsImg {
    width: 80px;
    height: 60px;
  }

  .tab-container {
    flex-direction: column;
    gap: 5px;
  }

  .tab {
    margin-right: 0;
    margin-bottom: 5px;
  }

  .button-container {
    flex-wrap: wrap;
  }

  .button,
  .download-all {
    width: calc(50% - 5px);
  }
}

/* 在现有样式的基础上添加以下内容 */

.tool-header {
  text-align: center;
  margin-bottom: 30px;
}

.tool-header h1 {
  font-size: 24px;
  color: #333;
  margin: 10px 0;
}

.tool-header i {
  font-size: 32px;
  color: #4a90e2;
  margin-bottom: 10px;
}

.tool-description {
  color: #666;
  font-size: 16px;
  margin-bottom: 20px;
}

.features {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 30px;
}

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

.feature-item i {
  font-size: 24px;
  color: #4a90e2;
}

.feature-item span {
  font-size: 14px;
  color: #666;
}

.tab i {
  margin-right: 8px;
}

.upload-info {
  text-align: center;
  color: #666;
  margin: 10px 0;
  font-size: 14px;
}

.upload-info i {
  color: #4a90e2;
  margin-right: 5px;
}

.button i {
  margin-right: 8px;
}

.news-description {
  color: #666;
  font-size: 14px;
  margin-bottom: 20px;
  padding: 0 10px;
}

/* 响应式调整 */
@media screen and (max-width: 500px) {
  .features {
    flex-wrap: wrap;
    gap: 20px;
  }

  .feature-item {
    width: calc(50% - 10px);
  }

  .tool-header h1 {
    font-size: 20px;
  }

  .tool-description {
    font-size: 14px;
  }
}

/* 添加新的section header样式 */
.section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  width: calc(100% - 20px);
  max-width: 1000px;
  /* padding: 0 20px; */
  margin-bottom: 15px;
}

.section-header .section-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.section-header h2 {
  font-size: 20px;
  color: #333;
  font-weight: 500;
}

/* 调整现有容器的margin */
.searchRow {
  margin-bottom: 30px;
}

.container {
  margin-bottom: 30px;
}

.newsContent {
  margin-bottom: 30px;
}

/* 移动端适配 */
@media screen and (max-width: 500px) {
  .section-header {
    /* padding: 0 15px; */
  }

  .section-header h2 {
    font-size: 18px;
  }
}

.footer {
  padding: 20px 0;
  margin-top: 30px;
  border-top: 1px solid #e7e7e7;
  width: 100%;
  max-width: 1000px;
}

.footer-content {
  padding: 0 20px;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-section ul li a {
  color: #666;
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-section ul li a i {
  font-size: 16px;
  color: #4a90e2;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover i {
  color: #007bff;
}

.footer-section ul li a:hover {
  color: #007bff;
}

.footer-bottom {
  text-align: center;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e7e7e7;
}

.footer-bottom p {
  color: #666;
  font-size: 14px;
}

@media (max-width: 768px) {
  .footer-section ul {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  
  .footer {
    padding: 15px 0;
  }
}

/* Privacy Policy Styles */
.policy-container {
    max-width: 800px;
    width: calc(100% - 40px);
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 6px rgba(32, 33, 36, 0.28);
}

.policy-container h1 {
    color: #333;
    font-size: 28px;
    margin-bottom: 10px;
}

.last-updated {
    color: #666;
    font-size: 14px;
    margin-bottom: 30px;
}

.policy-section {
    margin-bottom: 30px;
}

.policy-section h2 {
    color: #444;
    font-size: 20px;
    margin-bottom: 15px;
}

.policy-section p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 10px;
}

.policy-section ul {
    list-style-type: disc;
    margin-left: 20px;
    color: #666;
}

.policy-section ul li {
    margin-bottom: 8px;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .policy-container {
        padding: 15px;
    }

    .policy-container h1 {
        font-size: 24px;
    }

    .policy-section h2 {
        font-size: 18px;
    }
}

/* About Us Styles */
.about-container {
    max-width: 800px;
    width: calc(100% - 40px);
    margin: 0 auto;
    padding: 20px;
}

.about-container h1 {
    color: #333;
    font-size: 32px;
    text-align: center;
    margin-bottom: 40px;
}

.about-section {
    margin-bottom: 40px;
}

.about-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 1px 6px rgba(32, 33, 36, 0.28);
    text-align: center;
}

.about-card > i {
    font-size: 36px;
    color: #4a90e2;
    margin-bottom: 20px;
}

.about-card h2 {
    color: #333;
    font-size: 24px;
    margin-bottom: 20px;
}

.about-card p {
    color: #666;
    line-height: 1.6;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.service-item {
    padding: 20px;
    text-align: center;
}

.service-item i {
    font-size: 24px;
    color: #4a90e2;
    margin-bottom: 15px;
}

.service-item h3 {
    color: #333;
    font-size: 18px;
    margin-bottom: 10px;
}

.service-item p {
    color: #666;
    font-size: 14px;
}

/* Commitment List */
.commitment-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.commitment-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666;
}

.commitment-list li i {
    color: #4a90e2;
}

/* Contact Email */
.contact-email {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #4a90e2;
    text-decoration: none;
    font-size: 18px;
    margin-top: 15px;
    transition: color 0.3s ease;
}

.contact-email:hover {
    color: #007bff;
}

@media (max-width: 768px) {
    .about-container {
        padding: 15px;
    }

    .about-container h1 {
        font-size: 28px;
    }

    .about-card {
        padding: 20px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .commitment-list {
        grid-template-columns: 1fr;
    }
}
