* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #333;
  background-color: #f5f7fa;
}

a {
  color: #34A7F3;
  text-decoration: none;
}

a:hover {
  color: #2563EB;
}

/* Top Bar */
.topbar {
  background: #34A7F3;
  color: #fff;
  padding: 8px 0;
  font-size: 13px;
}

.topbar-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
  justify-content: space-between;
}

.topbar-left {
  flex-shrink: 0;
}

.topbar-right {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  gap: 10px;
}

.topbar-right span {
  color: rgba(255,255,255,0.9);
}

/* Header */
.header {
  background: #fff;
  color: #333;
  padding: 15px 0;
  width: 100%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

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

.logo {
  flex-shrink: 0;
  height: 36px;
  line-height: 36px;
}

.logo a {
  display: inline-block;
  height: 36px;
  line-height: 36px;
}

.logo-text {
  font-size: 24px;
  font-weight: bold;
  color: #FF68A2;
  line-height: 36px;
  vertical-align: middle;
}

.logo-img {
  height: 36px;
  max-width: 200px;
  width: auto;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 8px;
}

.header-right {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-box-pack: end;
  -webkit-justify-content: flex-end;
  justify-content: flex-end;
}

.header-subtitle {
  font-size: 13px;
  color: #333;
  font-weight: bold;
  text-align: right;
  max-width: 500px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-search {
  background: #f8f9fa;
  border-bottom: 1px solid #e5e7eb;
  padding: 10px 0;
  width: 100%;
  box-sizing: border-box;
}

.header-search .search-box {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  gap: 0;
  min-width: 300px;
}

.search-box {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  gap: 0;
  min-width: 300px;
  width: 100%;
  max-width: 1200px;
  margin: 0 20px;
  border: 2px solid #FF68A2;
  border-radius: 6px;
  overflow: hidden;
  box-sizing: border-box;
}

.search-box form {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  width: 100%;
}

.search-cat {
  padding: 8px 12px;
  border: none;
  border-radius: 4px 0 0 4px;
  font-size: 14px;
  min-width: 100px;
  color: #333;
  background: #fff;
}

.search-input {
  padding: 8px 15px;
  border: none;
  border-radius: 0;
  font-size: 14px;
  flex: 1;
  min-width: 150px;
  color: #333;
  background: #fff;
}

.search-btn {
  padding: 8px 20px;
  background: #FF68A2;
  color: #fff;
  border: none;
  border-radius: 0 4px 4px 0;
  font-size: 14px;
  cursor: pointer;
}

.search-btn:hover {
  background: #FF68A2;
}

/* Nav Bar */
.nav-bar {
  background: #fff;
  border-bottom: 2px solid #34A7F3;
  width: 100%;
}

.nav-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 10px;
}

.nav-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.nav-item {
  display: inline-block;
  padding: 8px 10px;
  color: #333;
  font-size: 13px;
  white-space: nowrap;
  text-decoration: none;
}

.nav-item:hover {
  background: #e6f2ff;
  color: #34A7F3;
}

.nav-item.active {
  background: #34A7F3;
  color: #fff;
}

/* Notice Bar */
.notice-bar {
  background: #34A7F3;
  border-bottom: 1px solid #2563EB;
  padding: 6px 0;
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
}

.notice-scroll {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  animation: noticeScroll 30s linear infinite;
}

.notice-scroll:hover {
  animation-play-state: paused;
}

@keyframes noticeScroll {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

.notice-icon {
  font-size: 14px;
}

.notice-text {
  font-size: 13px;
  color: #fff;
  font-weight: bold;
}

/* Main Content */
.main-content {
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 20px;
  width: 100%;
}

.page-title {
  margin-bottom: 20px;
}

.page-title h1 {
  font-size: 20px;
  color: #333;
  margin-bottom: 15px;
  line-height: 1.4;
}

.page-search-box {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 20px;
  background: #fff;
  border-radius: 8px;
  padding: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.page-search-box .search-cat {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px 0 0 4px;
  font-size: 14px;
  min-width: 100px;
}

.page-search-box .search-input {
  padding: 8px 15px;
  border: none;
  border-radius: 0;
  font-size: 14px;
  flex: 1;
  min-width: 150px;
  color: #333;
  background: #fff;
}

.page-search-box .search-btn {
  padding: 8px 20px;
  background: #FF68A2;
  color: #fff;
  border: none;
  border-radius: 0 4px 4px 0;
  font-size: 14px;
  cursor: pointer;
}

.page-search-box .search-btn:hover {
  background: #FF68A2;
}

.page-title p {
  font-size: 14px;
  color: #666;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px;
}

.back-home-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #34A7F3;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
  transition: background 0.2s;
}

.back-home-btn:hover {
  background: #2563EB;
  color: #fff;
}

.back-icon {
  font-size: 16px;
}

/* Category Section */
.category-section {
  background: #fff;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.category-header h2 {
  font-size: 16px;
  color: #34A7F3;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #34A7F3;
}

.category-link {
  color: #34A7F3;
  text-decoration: none;
}

.category-link:hover {
  color: #2563EB;
}

.group-link {
  display: flex;
  gap: 8px;
  text-decoration: none;
  color: #333;
  width: 100%;
}

.group-link:hover {
  color: #34A7F3;
}

.groups-list {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.group-item {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
  -ms-flex: 1;
  flex: 1;
  min-width: 240px;
  background: #f8f9fa;
  border-radius: 4px;
  font-size: 13px;
  overflow: hidden;
}

.group-header-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  cursor: pointer;
}

.group-header-toggle:hover {
  background: #e9ecef;
}

.group-expand-icon {
  color: #34A7F3;
  font-size: 14px;
  font-weight: bold;
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}

.group-header-toggle.expanded .group-expand-icon {
  transform: rotate(45deg);
}

.products-expand {
  display: none;
  padding: 4px 10px 8px 34px;
  background: #fff;
  border-top: 1px solid #eee;
}

.group-header-toggle.expanded + .products-expand {
  display: block;
}

.product-item-expand {
  display: flex;
  gap: 8px;
  padding: 3px 0;
  font-size: 12px;
}

.product-code-expand {
  color: #888;
  font-size: 11px;
  width: 55px;
  flex-shrink: 0;
}

.product-name-expand {
  color: #333;
}

.group-code {
  color: #FF68A2;
  font-weight: bold;
  font-size: 12px;
}

.group-name {
  color: #333;
  font-size: 13px;
}

.category-desc {
  padding: 12px;
  background: #f8f9fa;
  border-radius: 4px;
  font-size: 13px;
  line-height: 1.8;
}

.category-ads {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed #ddd;
}

.ad-item {
  padding: 10px;
  background: #e7f3ff;
  border-radius: 4px;
  margin-bottom: 8px;
  text-align: center;
}

.ad-item:last-child {
  margin-bottom: 0;
}

.ad-item a {
  text-decoration: none;
  color: #FF68A2;
}

.ad-item a:hover {
  text-decoration: underline;
}

.ad-title {
  font-weight: bold;
  color: #FF68A2;
}

.category-desc p {
  color: #555;
}

.category-desc strong {
  color: #333;
}

/* Groups Grid */
.groups-section {
  margin-bottom: 20px;
}

.groups-section h3 {
  font-size: 16px;
  color: #333;
  margin-bottom: 15px;
}

.groups-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.group-card {
  background: #fff;
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.group-card .group-header {
  display: flex;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eee;
  margin-bottom: 8px;
}

.group-card .group-code {
  font-size: 13px;
}

.group-card .group-name {
  font-size: 14px;
  font-weight: bold;
}

.products-list {
  max-height: 250px;
  overflow-y: auto;
}

.product-item {
  display: flex;
  gap: 8px;
  padding: 4px 0;
  font-size: 12px;
}

.product-code {
  color: #888;
  font-size: 11px;
  width: 55px;
}

.product-name {
  color: #333;
}

.no-products {
  color: #999;
  font-size: 12px;
  padding: 8px 0;
  font-style: italic;
}

.back-link {
  color: #34A7F3;
  text-decoration: none;
  font-size: 13px;
}

.back-link:hover {
  color: #2563EB;
  text-decoration: underline;
}

/* Search Results */
.search-tips {
  background: #fff;
  padding: 40px;
  text-align: center;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.search-results {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.results-table th,
.results-table td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.results-table th {
  background: #f8f9fa;
  color: #333;
  font-weight: bold;
}

.results-table tr:hover {
  background: #f6f9ff;
}

/* Footer */
.footer {
  background: #FF68A2;
  color: #fff;
  padding: 20px 0;
  margin-top: 30px;
  width: 100%;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-friendlinks {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.friendlinks-label {
  font-size: 14px;
  color: #fff;
  flex-shrink: 0;
}

.footer-friendlinks a {
  display: inline-block;
  padding: 4px 16px;
  background: rgba(255,255,255,0.25);
  color: #fff;
  border-radius: 20px;
  font-size: 13px;
  text-decoration: none;
}

.footer-friendlinks a:hover {
  background: rgba(255,255,255,0.4);
}

.footer-links {
  margin-bottom: 12px;
  font-size: 13px;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -webkit-flex-direction: row;
  flex-direction: row;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links a {
  color: #fff;
  margin-right: 0;
}

.footer-links span {
  margin-right: 0;
}

.footer-links a:hover {
  color: rgba(255,255,255,0.8);
}

.footer-copyright {
  font-size: 14px;
  color: #fff;
  text-align: center;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.footer-copyright a {
  color: #fff;
}

/* Fixed Tools */
.fixed-tools {
  position: fixed;
  right: 20px;
  bottom: 100px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9999;
}

.wechat-btn {
  width: 48px;
  height: 48px;
  background: #FF68A2;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(255, 104, 162, 0.3);
  position: relative;
  transition: transform 0.2s;
}

.wechat-btn:hover {
  transform: scale(1.1);
}

.wechat-icon {
  font-size: 22px;
}

.wechat-qr {
  position: absolute;
  right: 55px;
  bottom: 0;
  width: 140px;
  background: #fff;
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.wechat-btn:hover .wechat-qr {
  display: flex;
}

.wechat-qr img {
  width: 120px;
  height: 120px;
  border-radius: 4px;
}

.wechat-qr span {
  font-size: 12px;
  color: #666;
}

.top-btn {
  width: 48px;
  height: 48px;
  background: #34A7F3;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 102, 204, 0.3);
  transition: transform 0.2s;
  display: none;
}

.top-btn:hover {
  transform: scale(1.1);
}

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

/* Data Empty Tip */
.data-empty {
  text-align: center;
  padding: 30px;
  background: #fff5f8;
  border: 1px solid #ffe0eb;
  border-radius: 4px;
  margin-bottom: 20px;
  color: #FF68A2;
  font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
  .header-content {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: stretch;
    -webkit-align-items: stretch;
    align-items: stretch;
    gap: 8px;
  }

  .topbar-content {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    gap: 4px;
  }

  .topbar-left {
    font-size: 12px;
  }

  .topbar-right {
    font-size: 12px;
  }
  
  .header-right {
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
  }
  
  .header-subtitle {
    font-size: 12px;
    white-space: normal;
    text-align: center;
    max-width: 100%;
    color: #333;
    font-weight: bold;
  }
  
  .logo-img {
    max-width: 80px;
    height: 30px;
  }
  
  .logo-text {
    font-size: 16px;
    line-height: 30px;
    color: #FF68A2;
    font-weight: bold;
  }
  
  .header-search {
    padding: 10px 10px;
  }

  .header-search .search-box {
    min-width: 100%;
    max-width: 100%;
    padding: 0;
  }

  .search-box {
    min-width: 100%;
    width: 100%;
    margin: 0;
  }
  
  .search-box form {
    width: 100%;
  }
  
  .search-input {
    flex: 1;
    min-width: 80px;
  }
  
  .nav-list {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 0;
  }
  
  .nav-item {
    padding: 8px 10px;
    font-size: 13px;
  }
  
  .groups-list,
  .groups-grid {
    grid-template-columns: 1fr;
  }
  
  .results-table th,
  .results-table td {
    padding: 6px;
    font-size: 11px;
  }
  
  .category-section {
    padding: 12px;
  }
  
  .category-header h2 {
    font-size: 14px;
  }
  
  .page-title h1 {
    font-size: 16px;
  }
  
  .notice-scroll {
    animation-duration: 20s;
  }
  
  .fixed-tools {
    right: 10px;
    bottom: 80px;
  }
  
  .wechat-btn,
  .top-btn {
    width: 40px;
    height: 40px;
  }
  
  .wechat-icon {
    font-size: 18px;
  }
  
  .top-icon {
    font-size: 16px;
  }
  
  .wechat-qr {
    width: 120px;
    padding: 8px;
  }
  
  .wechat-qr img {
    width: 100px;
    height: 100px;
  }
  
  .footer-friendlinks {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -webkit-flex-direction: row;
    flex-direction: row;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .friendlinks-label {
    font-size: 13px;
  }
  
  .footer-friendlinks a {
    padding: 4px 12px;
    font-size: 12px;
  }
  
  .footer-links {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    gap: 8px;
  }
  
  .footer-copyright {
    font-size: 13px;
    color: #fff;
  }
}

@media (max-width: 480px) {
  .header {
    padding: 10px 0;
  }
  
  .logo-text {
    font-size: 16px;
  }
  
  .logo-img {
    max-width: 80px;
    height: 30px;
  }
  
  .search-cat {
    min-width: 80px;
    padding: 6px 8px;
    font-size: 12px;
  }
  
  .search-input {
    padding: 6px 10px;
    font-size: 12px;
  }
  
  .search-btn {
    padding: 6px 12px;
    font-size: 12px;
  }
  
  .nav-item {
    padding: 6px 6px;
    font-size: 10px;
  }
}