/* clean-medical — 2021 Clean Medical/Professional Design System */

/* ===== CSS Reset ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: "Work Sans", "Noto Sans TC", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: #4a5568;
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input, button, textarea, select {
  font: inherit;
}

a {
  color: #0097a7;
  text-decoration: none;
  transition: color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

a:hover {
  color: #007a87;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Work Sans", "Noto Sans TC", sans-serif;
  color: #1b2a4a;
  font-weight: 600;
  line-height: 1.3;
}

table {
  border-collapse: collapse;
  width: 100%;
}

/* ===== Design Tokens ===== */
:root {
  --bg_white: #ffffff;
  --bg_section: #f5f7fa;
  --heading_navy: #1b2a4a;
  --accent_teal: #0097a7;
  --accent_teal_dark: #007a87;
  --badge_green: #4caf50;
  --text_body: #4a5568;
  --text_muted: #718096;
  --border_light: #e2e8f0;
  --shadow_card: 0 2px 8px rgba(27, 42, 74, 0.08);
  --shadow_hover: 0 8px 24px rgba(27, 42, 74, 0.14);
  --max_width: 1100px;
  --radius_card: 12px;
  --radius_btn: 6px;
  --transition: 0.25s ease;
}

/* ===== Layout Shell ===== */
.content_wrap {
  max-width: var(--max_width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Header ===== */
.site_header {
  position: sticky;
  top: 0;
  z-index: 300;
  background: var(--bg_white);
  box-shadow: 0 1px 0 var(--border_light);
}

.site_header .header_wrap {
  position: relative;
}

.header_accent {
  height: 3px;
  background: linear-gradient(90deg, var(--accent_teal) 0%, var(--badge_green) 100%);
}

.header_wrap {
  padding: 0;
}

.header_row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
}

.logo_link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--heading_navy);
  font-weight: 700;
  font-size: 1.15rem;
}

.logo_link:hover {
  color: var(--accent_teal);
}

.logo_mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent_teal), var(--badge_green));
  flex-shrink: 0;
}

.page_nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav_toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav_bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--heading_navy);
  border-radius: 2px;
}

.nav_list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav_list a {
  display: block;
  padding: 10px 16px;
  color: var(--heading_navy);
  font-weight: 500;
  font-size: 0.9375rem;
  border-radius: var(--radius_btn);
}

.nav_list a:hover {
  color: var(--accent_teal);
  background: var(--bg_section);
}

.nav_mobile {
  display: none;
}

.nav_dropdown {
  position: relative;
}

.dropdown_trigger::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 6px;
  vertical-align: middle;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
}

.dropdown_menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 200px;
  background: var(--bg_white);
  border: 1px solid var(--border_light);
  border-radius: var(--radius_card);
  box-shadow: var(--shadow_hover);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
  z-index: 400;
}

.nav_dropdown:hover .dropdown_menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown_inner {
  display: flex;
  flex-direction: column;
  padding: 8px;
}

.dropdown_inner a {
  padding: 10px 14px;
  color: var(--heading_navy);
  font-size: 0.875rem;
  border-radius: var(--radius_btn);
}

.dropdown_inner a:hover {
  background: var(--bg_section);
  color: var(--accent_teal);
}

.header_actions {
  flex-shrink: 0;
}

.btn_cta {
  display: inline-block;
  padding: 10px 22px;
  background: var(--accent_teal);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: var(--radius_btn);
}

.btn_cta:hover {
  background: var(--accent_teal_dark);
  color: #ffffff;
}

/* ===== Buttons ===== */
.btn_primary {
  display: inline-block;
  padding: 12px 28px;
  background: var(--accent_teal);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: var(--radius_btn);
  border: 2px solid var(--accent_teal);
  text-align: center;
}

.btn_primary:hover {
  background: var(--accent_teal_dark);
  border-color: var(--accent_teal_dark);
  color: #ffffff;
}

.btn_outline {
  display: inline-block;
  padding: 12px 28px;
  background: transparent;
  color: var(--accent_teal);
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: var(--radius_btn);
  border: 2px solid var(--accent_teal);
}

.btn_outline:hover {
  background: var(--accent_teal);
  color: #ffffff;
}

.btn_block {
  display: block;
  width: 100%;
}

/* ===== Hero Split ===== */
.hero_split {
  background: var(--bg_section);
  padding: 56px 0;
}

.hero_row {
  display: flex;
  align-items: center;
  gap: 40px;
}

.hero_text {
  flex: 0 0 60%;
  max-width: 60%;
}

.hero_visual {
  flex: 0 0 40%;
  max-width: 40%;
}

.hero_label {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(0, 151, 167, 0.12);
  color: var(--accent_teal);
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 20px;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.hero_title {
  font-size: 2.25rem;
  margin-bottom: 16px;
  color: var(--heading_navy);
}

.hero_desc {
  font-size: 1.0625rem;
  color: var(--text_muted);
  margin-bottom: 28px;
  line-height: 1.7;
}

.hero_btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero_image_wrap {
  border-radius: var(--radius_card);
  overflow: hidden;
  box-shadow: var(--shadow_card);
  background: #dde4ec;
  aspect-ratio: 4 / 5;
}

.hero_image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero_fallback {
  min-height: 320px;
  background: linear-gradient(135deg, #dde4ec 0%, #c5d0dc 100%);
}

/* ===== Section Headers ===== */
.section_head {
  text-align: center;
  margin-bottom: 36px;
}

.section_title {
  font-size: 1.75rem;
  margin-bottom: 8px;
}

.section_sub {
  color: var(--text_muted);
  font-size: 1rem;
}

.section_features,
.section_products,
.section_notices,
.section_seo,
.section_listing,
.section_article,
.section_related {
  padding: 56px 0;
}

.section_features {
  background: var(--bg_white);
}

.section_products {
  background: var(--bg_section);
}

.section_notices {
  background: var(--bg_white);
  padding: 40px 0;
}

.section_seo {
  background: var(--bg_section);
}

/* ===== Features Grid ===== */
.features_grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.features_grid > * {
  background: var(--bg_white);
  border: 1px solid var(--border_light);
  border-radius: var(--radius_card);
  padding: 28px;
  box-shadow: var(--shadow_card);
}

/* ===== Card Grid (Worker product cards) ===== */
.card_grid {
  display: flex;
  flex-wrap: wrap;
  margin: -12px;
}

.card_grid > .col-sm-6,
.card_grid > .col-md-4,
.card_grid > .col-md-3,
.card_grid > .col-lg-3 {
  width: 50%;
  padding: 12px;
  flex: 0 0 50%;
  max-width: 50%;
}

.card_grid_related > .col-sm-6,
.card_grid_related > .col-md-3 {
  width: 50%;
  flex: 0 0 50%;
  max-width: 50%;
}

.product-card {
  background: var(--bg_white);
  border-radius: var(--radius_card);
  overflow: hidden;
  box-shadow: var(--shadow_card);
  transition: box-shadow var(--transition), transform var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  box-shadow: var(--shadow_hover);
  transform: translateY(-4px);
}

.product-card .card-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius_card) var(--radius_card) 0 0;
}

.card_wrap {
  /* alias support */
}

.product-card .card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card .card-title {
  font-size: 1.125rem;
  margin-bottom: 10px;
  color: var(--heading_navy);
}

.product-card .card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 0.8125rem;
  color: var(--text_muted);
}

.product-card .card-meta span:first-child {
  display: inline-block;
  padding: 3px 10px;
  background: var(--badge_green);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.75rem;
  border-radius: 20px;
}

.product-card .card-price {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent_teal);
  margin-bottom: 16px;
  margin-top: auto;
}

.product-card .card-btn {
  display: inline-block;
  padding: 10px 20px;
  background: var(--heading_navy);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: var(--radius_btn);
  text-align: center;
}

.product-card .card-btn:hover {
  background: var(--accent_teal);
  color: #ffffff;
}

/* ===== Notices Panel ===== */
.notices_panel {
  background: var(--bg_section);
  border: 1px solid var(--border_light);
  border-left: 4px solid var(--accent_teal);
  border-radius: var(--radius_card);
  padding: 28px 32px;
}

/* ===== SEO Layout ===== */
.seo_layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: start;
}

.aside_card {
  background: var(--bg_white);
  border: 1px solid var(--border_light);
  border-radius: var(--radius_card);
  padding: 28px;
  box-shadow: var(--shadow_card);
}

.aside_title {
  font-size: 1.125rem;
  margin-bottom: 8px;
}

.aside_text {
  color: var(--text_muted);
  font-size: 0.875rem;
  margin-bottom: 16px;
}

.seo_prose {
  background: var(--bg_white);
  border-radius: var(--radius_card);
  padding: 36px;
  border: 1px solid var(--border_light);
}

.seo_prose p {
  margin-bottom: 1em;
}

.seo_prose p:last-child {
  margin-bottom: 0;
}

/* ===== Page Header ===== */
.page_header {
  background: var(--bg_section);
  padding: 32px 0 24px;
}

.page_header_compact {
  padding: 24px 0 16px;
}

.breadcrumb {
  font-size: 0.8125rem;
  color: var(--text_muted);
  margin-bottom: 12px;
}

.breadcrumb a {
  color: var(--accent_teal);
}

.breadcrumb_sep {
  margin: 0 8px;
  color: var(--border_light);
}

.breadcrumb_current {
  color: var(--heading_navy);
  font-weight: 500;
}

.page_title {
  font-size: 2rem;
  margin-bottom: 6px;
}

.page_sub {
  color: var(--text_muted);
}

/* ===== Listing Layout ===== */
.listing_layout,
.article_layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 36px;
  align-items: start;
}

.sidebar_block {
  background: var(--bg_white);
  border: 1px solid var(--border_light);
  border-radius: var(--radius_card);
  padding: 24px;
  margin-bottom: 20px;
}

.sidebar_title {
  font-size: 1rem;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent_teal);
}

.category_links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.category_links a {
  display: block;
  padding: 8px 12px;
  color: var(--heading_navy);
  font-size: 0.875rem;
  border-radius: var(--radius_btn);
}

.category_links a:hover {
  background: var(--bg_section);
  color: var(--accent_teal);
}

.sidebar_meta {
  color: var(--text_muted);
  font-size: 0.875rem;
}

.filter_tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.filter_tags a {
  display: inline-block;
  padding: 8px 16px;
  background: var(--bg_white);
  border: 1px solid var(--border_light);
  color: var(--heading_navy);
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: 20px;
}

.filter_tags a:hover,
.filter_tags a.active {
  background: var(--accent_teal);
  border-color: var(--accent_teal);
  color: #ffffff;
}

/* ===== Pagination ===== */
.page_nav_bottom {
  margin-top: 36px;
}

.pagination_list {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.pagination_list li a {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--border_light);
  border-radius: var(--radius_btn);
  color: var(--heading_navy);
  font-size: 0.875rem;
}

.pagination_list li.active a,
.pagination_list li a:hover {
  background: var(--accent_teal);
  border-color: var(--accent_teal);
  color: #ffffff;
}

/* ===== Article ===== */
.article_header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border_light);
}

.article_label {
  display: inline-block;
  padding: 4px 12px;
  background: var(--badge_green);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 20px;
  margin-bottom: 12px;
}

.article_title {
  font-size: 2rem;
  margin-bottom: 12px;
}

.article_meta {
  color: var(--text_muted);
  font-size: 0.875rem;
}

.article_prose {
  background: var(--bg_white);
  border: 1px solid var(--border_light);
  border-radius: var(--radius_card);
  padding: 36px;
  margin-bottom: 36px;
}

.article_prose p {
  margin-bottom: 1em;
}

.related_list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.related_list a {
  display: block;
  padding: 12px 16px;
  background: var(--bg_section);
  border-radius: var(--radius_btn);
  color: var(--heading_navy);
  font-weight: 500;
}

.related_list a:hover {
  background: var(--accent_teal);
  color: #ffffff;
}

/* ===== Footer ===== */
.site_footer {
  background: var(--heading_navy);
  color: rgba(255, 255, 255, 0.85);
}

.footer_main {
  padding: 56px 0 40px;
}

.footer_grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer_heading {
  color: #ffffff;
  font-size: 1.0625rem;
  margin-bottom: 16px;
  font-weight: 600;
}

.footer_body p {
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
}

.footer_link_list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer_link_list a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.875rem;
}

.footer_link_list a:hover {
  color: var(--accent_teal);
}

.footer_link_action {
  color: var(--accent_teal);
  font-weight: 600;
}

.footer_link_action:hover {
  color: #ffffff;
}

.footer_cta_line {
  margin-top: 12px;
}

.contact_slot {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.75);
}

.footer_bar {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 20px 0;
}

.footer_bar_inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.copyright_text {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer_legal {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
}

.footer_legal a {
  color: rgba(255, 255, 255, 0.55);
}

.footer_legal a:hover {
  color: #ffffff;
}

.footer_sep {
  color: rgba(255, 255, 255, 0.3);
}

/* ===== Type Badge (shared) ===== */
.type_badge {
  display: inline-block;
  padding: 4px 14px;
  background: var(--badge_green);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 20px;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.tag_item {
  display: inline-block;
  padding: 4px 10px;
  background: var(--bg_section);
  color: var(--heading_navy);
  font-size: 0.75rem;
  border-radius: 4px;
  margin-right: 6px;
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .hero_row {
    flex-direction: column;
  }

  .hero_text,
  .hero_visual {
    flex: none;
    max-width: 100%;
    width: 100%;
  }

  .hero_visual {
    order: -1;
  }

  .seo_layout,
  .listing_layout,
  .article_layout {
    grid-template-columns: 1fr;
  }

  .footer_grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .features_grid {
    grid-template-columns: 1fr;
  }

  .card_grid > .col-sm-6,
  .card_grid > .col-md-4,
  .card_grid > .col-md-3,
  .card_grid > .col-lg-3,
  .card_grid_related > .col-sm-6,
  .card_grid_related > .col-md-3 {
    width: 100%;
    flex: 0 0 100%;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .nav_toggle {
    display: flex;
  }

  .nav_panel {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg_white);
    border-top: 1px solid var(--border_light);
    box-shadow: var(--shadow_hover);
    padding: 16px 24px;
  }

  .nav_panel.is_open {
    display: block;
  }

  .page_nav {
    position: relative;
    flex: 0;
  }

  .nav_desktop {
    display: none;
  }

  .nav_mobile {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .nav_mobile a {
    padding: 12px 16px;
  }

  .header_row {
    flex-wrap: wrap;
  }

  .header_actions {
    order: 3;
    width: 100%;
    text-align: center;
    padding-bottom: 12px;
  }

  .hero_title {
    font-size: 1.75rem;
  }

  .page_title,
  .article_title {
    font-size: 1.5rem;
  }
}
