/* UCanCode Modern Navigation - inspired by Generic Logic professional style */
* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0;
  font-family: "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
  color: #333;
  background: #fff;
}

/* ===== Top Header ===== */
.ucc-header {
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  position: relative;
  z-index: 1000;
}

.ucc-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.ucc-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ucc-logo-text {
  font-size: 22px;
  font-weight: 700;
  color: #1a3a5c;
  letter-spacing: -0.5px;
}

.ucc-logo-text span {
  color: #2d6da3;
}

/* ===== Main Navigation ===== */
.ucc-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.ucc-nav-item {
  position: relative;
  display: inline-block;
}

.ucc-nav-link {
  display: block;
  padding: 10px 16px;
  color: #444;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.ucc-nav-link:hover,
.ucc-nav-item:hover > .ucc-nav-link {
  background: #f0f4f8;
  color: #1a3a5c;
}

.ucc-nav-link.highlight {
  color: #2d6da3;
  font-weight: 600;
}

/* ===== Dropdown Menus ===== */
.ucc-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 280px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  padding: 8px 0;
  z-index: 1001;
}

.ucc-nav-item:hover:not(.ucc-menu-closed) > .ucc-dropdown,
.ucc-nav-item.ucc-menu-open > .ucc-dropdown {
  display: block;
}

.ucc-nav-item.ucc-menu-closed > .ucc-dropdown {
  display: none !important;
}

.ucc-dropdown-wide {
  min-width: 580px;
  max-width: 760px;
  padding: 12px 0;
}

.ucc-dropdown-wide .ucc-dropdown-header {
  margin-bottom: 4px;
}

.ucc-dropdown-cols {
  display: flex;
  gap: 0;
}

.ucc-dropdown-col {
  flex: 1;
  min-width: 0;
}

.ucc-dropdown-col + .ucc-dropdown-col {
  border-left: 1px solid #eee;
}

.ucc-dropdown-header {
  padding: 8px 20px 4px;
  font-size: 11px;
  font-weight: 700;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ucc-dropdown a {
  display: block;
  padding: 8px 20px;
  color: #444;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.4;
  transition: background 0.15s;
}

.ucc-dropdown a:hover {
  background: #f0f4f8;
  color: #1a3a5c;
}

.ucc-dropdown-divider {
  height: 1px;
  background: #eee;
  margin: 6px 16px;
}

/* ===== Accent Bar ===== */
.ucc-accent-bar {
  background: linear-gradient(135deg, #1a3a5c 0%, #2d6da3 100%);
  color: #fff;
  font-size: 13px;
  padding: 6px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ucc-accent-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ===== Main Content Area ===== */
.ucc-main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
  width: 100%;
}

.ucc-main-content table {
  max-width: 100%;
}

/* ===== Footer ===== */
.ucc-footer {
  background: #f6f8fa;
  border-top: 1px solid #e8e8e8;
  padding: 20px 24px;
  text-align: center;
  font-size: 13px;
  color: #666;
  margin-top: 40px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .ucc-header-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .ucc-nav {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
  .ucc-nav-item {
    width: 100%;
  }
  .ucc-dropdown,
  .ucc-dropdown-wide {
    position: static;
    min-width: 100%;
    box-shadow: none;
    border: none;
    border-top: 1px solid #eee;
  }
  .ucc-dropdown-cols {
    flex-direction: column;
  }
  .ucc-dropdown-col + .ucc-dropdown-col {
    border-left: none;
    border-top: 1px solid #eee;
  }
  .ucc-nav-item:hover:not(.ucc-menu-closed) > .ucc-dropdown,
  .ucc-nav-item.ucc-menu-open > .ucc-dropdown {
    display: block;
  }
}
