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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(135deg, #e0f2fe 0%, #fce7f3 50%, #e0e7ff 100%);
  min-height: 100vh;
}

.main-header {
  background: #ffffff;
  padding: 8px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.header-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 30px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.logo span {
  color: #000000;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
}

.main-nav {
  display: flex;
  gap: 25px;
}

.main-nav a {
  text-decoration: none;
  color: #333;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.3s;
}

.main-nav a:hover {
  color: #1a73e8;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}

.search-box-header {
  display: flex;
  align-items: center;
  background: #f5f5f5;
  padding: 6px 12px;
  border-radius: 4px;
}

.search-box-header i {
  color: #666;
  font-size: 14px;
  margin-right: 8px;
}

.search-box-header i[role='button'] {
  cursor: pointer;
}

.search-box-header i[role='button']:hover {
  color: #1a73e8;
}

.search-box-header input {
  background: transparent;
  border: none;
  color: #333;
  font-size: 13px;
  width: 150px;
  outline: none;
}

.search-box-header input::placeholder {
  color: #999;
}

.header-right a {
  text-decoration: none;
  color: #333;
  font-size: 14px;
}

.login-btn {
  background: transparent;
  border: 1px solid #1a73e8;
  color: #1a73e8;
  padding: 6px 16px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
}

a.login-btn,
a.register-btn {
  display: inline-block;
  box-sizing: border-box;
  text-decoration: none;
  text-align: center;
  vertical-align: middle;
  line-height: normal;
}

.login-btn:hover {
  background: #1a73e8;
  color: #fff;
}

.register-btn {
  background: #ff0000;
  border: none;
  color: #fff;
  padding: 6px 16px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.3s;
}

.register-btn:hover {
  background: #cc0000;
}

.hero-section {
  padding: 60px 30px;
  text-align: center;
}

.hero-content h1 {
  font-size: 42px;
  color: #333;
  margin-bottom: 16px;
  font-weight: 700;
}

.hero-content p {
  font-size: 16px;
  color: #666;
  margin-bottom: 30px;
}

.search-box-hero {
  max-width: 850px;
  margin: 0 auto;
  display: flex;
  background: #fff;
  border-radius: 50px;
  padding: 22px 22px 22px 32px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.08);
  border: 1px solid #e8e8e8;
}

.search-box-hero i {
  color: #999;
  font-size: 18px;
  margin-right: 12px;
  align-self: center;
}

.search-box-hero input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
}

.search-box-hero .search-btn {
  background: #1a73e8;
  color: #fff;
  border: none;
  padding: 12px 32px;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s;
  margin-left: 12px;
}

.search-box-hero .search-btn:hover {
  background: #1557b0;
}

.news-ticker {
  max-width: 1200px;
  margin: 60px auto 0;
  background: #fff;
  border-radius: 8px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.ticker-icon {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 15px;
  padding-right: 15px;
  border-right: 1px solid #e8e8e8;
}

.ticker-icon i {
  color: #1a73e8;
  font-size: 14px;
}

.ticker-icon-color {
  background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ticker-icon span {
  font-size: 13px;
  font-weight: 600;
  color: #333;
}

.news-ticker marquee {
  color: #666;
  font-size: 13px;
  width: calc(100% - 100px);
}

.content-main {
  padding: 30px;
}

.main-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  gap: 30px;
}

.products-section {
  flex: 1;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.section-header i {
  font-size: 18px;
  color: #1a73e8;
}

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

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.product-card {
  background: #fff;
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  transition: box-shadow 0.3s, transform 0.3s;
  cursor: pointer;
}

.product-card:hover {
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.product-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 26px;
  color: #fff;
}

.product-icon.orange {
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
}

.product-icon.pink {
  background: linear-gradient(135deg, #ff3366 0%, #ff99cc 100%);
}

.product-icon.cyan {
  background: linear-gradient(135deg, #00bcd4 0%, #0097a7 100%);
}

.product-icon.green {
  background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
}

.product-icon.blue {
  background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
}

.product-icon.dark-blue {
  background: linear-gradient(135deg, #1e88e5 0%, #1565c0 100%);
}

.product-icon.purple {
  background: linear-gradient(135deg, #9c27b0 0%, #7b1fa2 100%);
}

.product-icon.navy {
  background: linear-gradient(135deg, #3f51b5 0%, #303f9f 100%);
}

.product-icon .module-custom-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}

a.product-card {
  text-decoration: none;
  color: inherit;
}

.product-card--static {
  cursor: default;
}

.product-card--static:hover {
  transform: none;
  box-shadow: none;
}

.home-modules-loading,
.home-modules-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: #999;
  font-size: 14px;
  padding: 24px 12px;
}

#home-modules-grid:empty::before {
  content: '';
}

.product-card h3 {
  font-size: 15px;
  color: #333;
  margin-bottom: 8px;
  font-weight: 500;
}

.product-card p {
  font-size: 13px;
  color: #999;
  line-height: 1.5;
}

.sidebar {
  width: 300px;
  flex-shrink: 0;
  margin-top: 50px;
}

.sidebar-card {
  background: #fff;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.sidebar-header i {
  font-size: 18px;
  color: #1a73e8;
}

.sidebar-header h3 {
  font-size: 16px;
  color: #333;
  font-weight: 600;
}

.sidebar-list {
  list-style: none;
}

.sidebar-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px 0;
  border-bottom: 1px solid #f0f0f0;
}

.sidebar-list li:last-child {
  border-bottom: none;
}

.sidebar-list li i {
  font-size: 16px;
  color: #1a73e8;
  margin-top: 2px;
}

.sidebar-icon-img-wrap {
  flex-shrink: 0;
  margin-top: 2px;
}

.sidebar-custom-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
  vertical-align: middle;
}

.sidebar-entry-title-text {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

.home-entry-loading,
.home-entry-empty {
  padding: 8px 0;
  font-size: 13px;
  color: #999;
}

.list-content {
  flex: 1;
}

.list-content a {
  text-decoration: none;
  color: #333;
  font-size: 14px;
  font-weight: 500;
  display: block;
  margin-bottom: 4px;
}

.list-content a:hover {
  color: #1a73e8;
}

.list-content .sidebar-entry-desc {
  font-size: 12px;
  color: #999;
  display: block;
}

.page-footer {
  background: transparent;
  margin-top: 50px;
}

.footer-content {
  padding: 8px 24px 40px;
  text-align: center;
  color: #999;
  font-size: 13px;
}

@media (max-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .header-right {
    gap: 10px;
  }
  
  .search-box-header {
    display: none;
  }
  
  .main-container {
    flex-direction: column;
  }
  
  .sidebar {
    width: 100%;
  }
  
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .hero-content h1 {
    font-size: 30px;
  }
  
  .products-grid {
    grid-template-columns: 1fr;
  }
}

/* 联系我们 · 二维码弹层 */
.contact-qr-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10050;
  background: rgba(15, 23, 42, 0.45);
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.contact-qr-overlay.is-open {
  display: flex;
}

.contact-qr-dialog {
  position: relative;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
  max-width: min(420px, 100%);
  width: 100%;
  padding: 22px 20px 20px;
  animation: contactQrPop 0.22s ease-out;
}

@keyframes contactQrPop {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.contact-qr-title {
  font-size: 17px;
  font-weight: 600;
  color: #1e293b;
  text-align: center;
  margin: 0 0 14px;
}

.contact-qr-body {
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-qr-img {
  max-width: 100%;
  max-height: 56vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}

.contact-qr-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: none;
  background: #f1f5f9;
  color: #475569;
  font-size: 22px;
  line-height: 1;
  border-radius: 8px;
  cursor: pointer;
}

.contact-qr-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}