/* Tencent Cloud Style */
:root {
  --txc-blue: #0052d9;
  --txc-blue-hover: #003eb3;
  --txc-bg: #f3f5f8;
  --txc-border: #e5e6eb;
  --txc-text-main: #1c2438;
  --txc-text-muted: #4b5b76;
  --txc-orange: #ff7d00;
  --txc-orange-light: #fff2e8;
}

body {
  background-color: var(--txc-bg);
  color: var(--txc-text-main);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header */
.topbar {
  background: #fff;
  border-bottom: 1px solid var(--txc-border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  max-width: 1400px;
  margin: 0 auto;
}
.topbar-brand-area {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--txc-text-main);
  padding: 4px;
}
.topbar-nav-area {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: space-between;
}
.topbar-left, .topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.brand {
  font-size: 20px;
  font-weight: bold;
  color: #000;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 20px;
}
.brand-icon {
  color: var(--txc-blue);
  font-size: 24px;
}
.nav-link {
  color: var(--txc-text-main);
  font-size: 14px;
  text-decoration: none;
}
.nav-link:hover {
  color: var(--txc-blue);
}

/* Center Navigation Menu Enhancements */
.topbar-center .nav-link {
  font-size: 16px;
  font-weight: 600;
  padding: 8px 16px;
  position: relative;
  transition: color 0.3s ease;
}
.topbar-center .nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 3px;
  background-color: var(--txc-blue);
  transition: all 0.3s ease;
  transform: translateX(-50%);
  border-radius: 3px;
}
.topbar-center .nav-link:hover::after {
  width: 60%;
}
.search-box {
  border: 1px solid var(--txc-border);
  border-radius: 2px;
  padding: 4px 12px;
  font-size: 12px;
  color: var(--txc-text-muted);
  width: 160px;
}
.btn-register {
  background: var(--txc-blue);
  color: #fff !important;
  padding: 6px 16px;
  border-radius: 2px;
}
.btn-register:hover {
  background: var(--txc-blue-hover);
}

/* Hero */
.hero {
  background: linear-gradient(180deg, #e1edff 0%, #f3f5f8 100%);
  padding: 60px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-tag {
  display: inline-block;
  background: rgba(0, 82, 217, 0.1);
  color: var(--txc-blue);
  padding: 4px 16px;
  border-radius: 12px;
  font-size: 12px;
  margin-bottom: 16px;
  border: 1px solid rgba(0, 82, 217, 0.2);
}
.hero h1 {
  font-size: 40px;
  font-weight: 700;
  color: #000;
  margin-bottom: 16px;
  letter-spacing: 1px;
}
.hero p {
  color: var(--txc-text-muted);
  font-size: 16px;
}
.carousel-hero {
  height: 360px;
}

/* Layout */
.main-container {
  display: flex;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  gap: 24px;
  align-items: flex-start;
  margin-top: -50px;
  position: relative;
  z-index: 10;
}

/* Sidebar */
.sidebar {
  width: 160px;
  background: #fff;
  border: 2px solid var(--txc-blue);
  border-radius: 4px;
  position: sticky;
  top: 80px;
  flex-shrink: 0;
}
.sidebar-header {
  background: #f4f8ff;
  text-align: center;
  padding: 16px 0;
  border-bottom: 1px solid #e5e6eb;
}
.sidebar-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar-menu li a {
  display: block;
  padding: 14px 20px;
  color: var(--txc-text-main);
  text-decoration: none;
  font-size: 14px;
  text-align: center;
  border-bottom: 1px solid #f4f5f9;
}
.sidebar-menu li a:hover, .sidebar-menu li a.active {
  color: var(--txc-blue);
  background: #f4f8ff;
  font-weight: bold;
}

/* Content */
.content {
  flex: 1;
  padding-top: 50px;
  padding-bottom: 60px;
}
.section-header {
  margin-bottom: 24px;
  margin-top: 30px;
}
.section-header h2 {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 8px;
  color: #000;
}
.section-header p {
  color: var(--txc-text-muted);
  font-size: 13px;
}

/* Card */
.product-card {
  background: #fff;
  border: 1px solid var(--txc-border);
  border-radius: 4px;
  padding: 24px;
  transition: all 0.2s;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  border-color: var(--txc-blue);
  box-shadow: 0 4px 16px rgba(0, 82, 217, 0.1);
  transform: translateY(-2px);
}
.card-ribbon {
  position: absolute;
  top: -1px;
  right: -1px;
  background: var(--txc-orange);
  color: #fff;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 0 4px 0 12px;
  font-weight: bold;
}
.card-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-title a {
  color: inherit;
  text-decoration: none;
}
.card-title a:hover {
  color: var(--txc-blue);
}
.card-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.card-tag {
  background: #f3f5f8;
  color: var(--txc-text-muted);
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 2px;
}
.card-divider {
  height: 1px;
  background: #f0f0f0;
  margin: 16px 0;
}
.card-spec {
  display: flex;
  font-size: 13px;
  margin-bottom: 8px;
  line-height: 1.5;
}
.card-spec-label {
  color: var(--txc-text-muted);
  width: 70px;
  flex-shrink: 0;
}
.card-spec-value {
  color: var(--txc-text-main);
  flex: 1;
}
.card-price {
  margin-top: auto;
  padding-top: 16px;
}
.card-price .amount {
  font-size: 24px;
  font-weight: bold;
  color: var(--txc-orange);
}
.card-price .unit {
  font-size: 12px;
  color: var(--txc-text-muted);
}
.btn-buy {
  display: block;
  width: 100%;
  text-align: center;
  background: #f3f5f8;
  color: var(--txc-blue);
  padding: 8px 0;
  border-radius: 2px;
  text-decoration: none;
  font-size: 14px;
  margin-top: 16px;
  border: 1px solid var(--txc-blue);
}
.btn-buy:hover {
  background: var(--txc-blue);
  color: #fff;
}

/* Home page advantage cards */
.advantage-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.1) !important;
}

/* Footer */
.footer {
  background: #fff;
  padding: 40px 0;
  text-align: center;
  color: var(--txc-text-muted);
  font-size: 14px;
  border-top: 1px solid var(--txc-border);
  margin-top: auto;
}

/* Responsive Mobile */
@media (max-width: 992px) {
  .topbar-inner {
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
  }
  .topbar-brand-area {
    width: 100%;
  }
  .mobile-menu-btn {
    display: block;
  }
  .topbar-nav-area {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--txc-border);
  }
  .topbar-nav-area.open {
    display: flex;
  }
  .topbar-left, .topbar-right {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
  }
  .topbar-left {
    margin-bottom: 16px;
  }
  .nav-link {
    display: block;
    width: 100%;
    padding: 8px 0;
    border-bottom: 1px solid #f4f5f9;
  }
  .btn-register {
    text-align: center;
    margin-top: 10px;
  }
  .search-box {
    width: 100%;
    margin-bottom: 10px;
  }
  .main-container {
    flex-direction: column;
    margin-top: 20px;
    padding: 0 10px;
    align-items: stretch;
  }
  .content {
    width: 100%;
    padding-top: 0;
  }
  .sidebar {
    width: 100%;
    position: static;
    border: none;
    border-bottom: 1px solid var(--txc-border);
    border-radius: 0;
    margin-bottom: 20px;
  }
  .sidebar-header {
    display: none;
  }
  .sidebar-menu {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
    /* Hide scrollbar for Chrome, Safari and Opera */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
  }
  .sidebar-menu::-webkit-scrollbar {
    display: none;
  }
  .sidebar-menu li {
    flex-shrink: 0;
  }
  .sidebar-menu li a {
    border-bottom: 2px solid transparent;
    padding: 12px 16px;
  }
  .sidebar-menu li a:hover, .sidebar-menu li a.active {
    background: transparent;
    border-bottom-color: var(--txc-blue);
  }
  .hero {
    padding: 30px 15px;
  }
  .hero h1 {
    font-size: 28px;
  }
  .carousel-hero {
    height: 180px;
  }
  .section-header {
    margin-top: 10px;
  }
}

@media (max-width: 768px) {
  .product-card {
    padding: 16px;
  }
  .card-spec {
    flex-direction: column;
    margin-bottom: 12px;
  }
  .card-spec-label {
    width: 100%;
    font-weight: bold;
    margin-bottom: 4px;
    color: var(--txc-text-main);
  }
  .card-spec-value {
    color: var(--txc-text-muted);
  }
}

