body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}

.container {
  display: flex;
  height: 100vh;
}

.left-panel {
  width: 200px;
  background-color: #24292e;
  color: #fff;
  padding: 20px;
  overflow-y: auto;
}

.right-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 20px;
  overflow-y: auto;
}

h1 {
  margin: 0;
  font-size: 24px;
  text-align: center;
  margin-bottom: 20px;
}

main {
  max-width: 960px;
  margin: 20px auto;
  padding: 0 20px;
}

.search-bar {
  padding: 20px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

#search-input {
  width: 300px;
  max-width: 480px;
  padding: 12px 20px;
  font-size: 16px;
  border: 1px solid #d0d7de;
  border-radius: 6px;
  outline: none;
  transition: border-color 0.2s ease;
}

#search-input:focus {
  border-color: #0366d6;
  box-shadow: 0 0 0 3px rgba(3, 102, 214, 0.1);
}

#search-btn {
  margin-left: 12px;
  padding: 12px 24px;
  font-size: 16px;
  color: #fff;
  background-color: #2da44e;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

#search-btn:hover {
  background-color: #2c974b;
}

.menu {
  list-style-type: none;
  padding: 0;
  margin-bottom: 20px;
}

.menu li {
  padding: 10px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.menu li:hover {
  background-color: #0366d6;
}

.software-list {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  padding: 20px;
  align-content: flex-start;
}

.software-item {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  padding: 24px;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 240px;
  height: fit-content;
}

.software-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.software-item img {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  margin-bottom: 16px;
  object-fit: contain;
}

.software-item h2 {
  font-size: 18px;
  font-weight: 600;
  color: #24292e;
  margin: 0 0 8px;
}

.software-item p {
  font-size: 14px;
  color: #57606a;
  margin: 0 0 12px;
  line-height: 1.5;
  max-width: 100%;
}

.software-item .author {
  font-size: 13px;
  color: #6e7781;
  font-style: italic;
  margin: auto 0 0;
  padding-top: 12px;
}

/* 详情页样式 */
.detail-container {
  flex: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 32px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.detail-header {
  display: flex;
  align-items: center;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e1e4e8;
}

.detail-icon {
  width: 128px;
  height: 128px;
  border-radius: 24px;
  margin-right: 32px;
  object-fit: contain;
  padding: 12px;
  background: #f6f8fa;
  border: 1px solid #e1e4e8;
}

.detail-title-section {
  flex: 1;
  min-width: 0; /* 防止文本溢出 */
}

.detail-title {
  font-size: 32px;
  font-weight: 600;
  color: #24292e;
  margin: 0 0 8px;
  line-height: 1.2;
}

.detail-author {
  font-size: 16px;
  color: #6e7781;
  margin: 0 0 16px;
  display: inline-block;
  padding: 4px 12px;
  background: #f6f8fa;
  border-radius: 12px;
}

.detail-description {
  font-size: 18px;
  color: #57606a;
  margin: 0;
  line-height: 1.6;
  padding: 16px;
  background: #f6f8fa;
  border-radius: 8px;
}

.detail-content {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e1e4e8;
  padding: 32px;
  margin-top: 24px;
}

.detail-section {
  margin-bottom: 24px;
  position: relative;
}

.detail-section-title {
  font-size: 20px;
  font-weight: 600;
  color: #24292e;
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-section-title::before {
  content: "";
  display: block;
  width: 4px;
  height: 20px;
  background: #0366d6;
  border-radius: 2px;
}

.detail-text {
  font-size: 16px;
  color: #57606a;
  line-height: 1.6;
  margin: 0;
  padding: 0 12px;
}

.back-button {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  font-size: 16px;
  color: #fff;
  background-color: #0366d6;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  margin-bottom: 24px;
  transition: all 0.2s ease;
  gap: 8px;
}

.back-button::before {
  content: "←";
  font-size: 18px;
}

.back-button:hover {
  background-color: #0255b3;
  transform: translateX(-4px);
}

/* Footer Styles */
.footer {
  background-color: #f6f8fa;
  padding: 32px 0;
  border-top: 1px solid #d0d7de;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
}

.footer-link {
  color: #57606a;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: #0366d6;
}

/* Page Content Styles */
.page-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

.page-title {
  font-size: 32px;
  font-weight: 600;
  color: #24292e;
  margin-bottom: 24px;
}

.page-content {
  font-size: 16px;
  line-height: 1.6;
  color: #57606a;
}

.page-content h2 {
  font-size: 24px;
  font-weight: 600;
  color: #24292e;
  margin: 32px 0 16px;
}

.page-content p {
  margin-bottom: 16px;
}

/* 移动端顶部导航栏 */
.mobile-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: #24292e;
  color: #fff;
  padding: 0 16px;
  z-index: 1000;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mobile-title {
  font-size: 20px;
  font-weight: 600;
  margin: 0;
  cursor: pointer;
  padding: 8px 0;
  transition: opacity 0.2s ease;
}

.mobile-title:hover {
  opacity: 0.8;
}

.menu-button {
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  padding: 12px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

.menu-button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.menu-button:active {
  background: rgba(255, 255, 255, 0.15);
}

/* 移动端菜单样式 */
.mobile-menu {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  background: #24292e;
  padding: 16px;
  z-index: 999;
  transform: translateY(-150%);
  transition: transform 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
  transform: translateY(0);
}

.mobile-menu .menu {
  margin: 0;
  padding: 0;
}

.mobile-menu .menu li {
  padding: 16px;
  color: #fff;
  font-size: 16px;
  border-radius: 8px;
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.05);
  text-transform: capitalize;
}

.mobile-menu .menu li:hover {
  background: rgba(255, 255, 255, 0.1);
}

.mobile-menu .menu li:active {
  background: rgba(255, 255, 255, 0.15);
}

/* 响应式布局 */
@media (max-width: 768px) {
  .mobile-header {
    display: flex;
  }

  .mobile-menu {
    display: block;
  }

  .left-panel {
    display: none;
  }

  .container {
    padding-top: 60px;
  }

  .right-panel {
    padding: 16px;
  }

  .software-list {
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 16px;
  }

  .detail-container {
    padding: 16px;
  }

  .detail-header {
    flex-direction: column;
    text-align: center;
  }

  .detail-icon {
    margin: 0 0 24px;
  }

  .search-bar {
    padding: 16px;
  }

  #search-input {
    width: 100%;
    max-width: calc(100% - 32px);
    margin: 0 16px;
  }

  #search-btn {
    margin: 12px auto 0;
    width: 100%;
    max-width: calc(100% - 32px);
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

/* 搜索结果样式 */
.no-results {
  text-align: center;
  padding: 48px 20px;
  color: #57606a;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  margin: 20px;
}

.no-results h2 {
  font-size: 24px;
  color: #24292e;
  margin-bottom: 12px;
}

.no-results p {
  font-size: 16px;
  margin: 0;
}

/* 联系表单样式 */
.contact-form {
  max-width: 600px;
  margin: 32px 0;
  padding: 24px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #24292e;
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  border: 1px solid #d0d7de;
  border-radius: 6px;
  background: #f6f8fa;
  transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #0366d6;
  box-shadow: 0 0 0 3px rgba(3, 102, 214, 0.1);
  outline: none;
}

.submit-btn {
  background: #2da44e;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.submit-btn:hover {
  background: #2c974b;
}

/* 联系信息样式 */
.contact-info {
  margin-top: 24px;
}

.social-links {
  margin-top: 16px;
  display: flex;
  gap: 16px;
}

.social-links a {
  color: #0366d6;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.social-links a:hover {
  color: #0255b3;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .contact-form {
    padding: 16px;
    margin: 24px 0;
  }

  .social-links {
    flex-direction: column;
    gap: 12px;
  }
}

/* 对话框样式 */
.dialog {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.dialog.active {
  display: flex;
  opacity: 1;
}

.dialog-content {
  background: #fff;
  padding: 32px;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
  max-width: 400px;
  width: 90%;
  text-align: center;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.dialog.active .dialog-content {
  transform: translateY(0);
}

.dialog-content h2 {
  color: #24292e;
  margin: 0 0 16px;
  font-size: 24px;
}

.dialog-content p {
  color: #57606a;
  margin: 0 0 24px;
  font-size: 16px;
  line-height: 1.5;
}

.dialog-btn {
  background: #2da44e;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 12px 32px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.dialog-btn:hover {
  background: #2c974b;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .dialog-content {
    padding: 24px;
    margin: 20px;
  }
} 