/* ================================================
   界鴻科技 JIH-HONG TECHNOLOGY — Shared Styles
   Version: 2.0  |  2026
   ================================================ */

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans TC', 'Roboto', 'Microsoft JhengHei', Arial, sans-serif;
  background: #f4f6f9;
  color: #2c3e50;
  line-height: 1.7;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* ===== CSS VARIABLES ===== */
:root {
  --primary:    #0a2d6e;
  --primary-lt: #1a4a9f;
  --accent:     #00a8e8;
  --accent-lt:  #33ccff;
  --dark:       #0d1b2e;
  --gray:       #6b7c93;
  --light-gray: #e8eef5;
  --white:      #ffffff;
  --shadow-sm:  0 2px 12px rgba(10,45,110,0.08);
  --shadow-md:  0 8px 32px rgba(10,45,110,0.13);
  --radius:     8px;
  --transition: all 0.3s ease;
}

/* ===== CONTAINER ===== */
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ===== TOP BAR ===== */
.top-bar {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  font-size: 0.78rem;
  padding: 6px 0;
  letter-spacing: 0.02em;
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.top-bar a { color: rgba(255,255,255,0.65); transition: var(--transition); }
.top-bar a:hover { color: var(--accent-lt); }
.top-bar .lang-switch { display: flex; gap: 12px; }
.top-bar .lang-switch a { border-left: 1px solid rgba(255,255,255,0.2); padding-left: 12px; transition: color .2s; cursor: pointer; }
.top-bar .lang-switch a:first-child { border-left: none; }
.top-bar .lang-switch a.active { color: #fff; font-weight: 600; }

/* ===== NAVBAR ===== */
.navbar {
  background: var(--white);
  border-bottom: 1px solid #dde5f0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.navbar-brand { display: flex; align-items: center; gap: 12px; }
.brand-icon {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.brand-icon svg { width: 24px; height: 24px; fill: none; stroke: white; stroke-width: 2; }
.brand-text { line-height: 1.2; }
.brand-text .name-zh { font-size: 1.05rem; font-weight: 700; color: var(--primary); }
.brand-text .name-en { font-size: 0.68rem; color: var(--gray); letter-spacing: 0.06em; }

/* NAV MENU */
.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-item { position: relative; }
.nav-link {
  display: flex; align-items: center; gap: 5px;
  padding: 8px 16px;
  font-size: 0.9rem; font-weight: 500;
  color: var(--primary);
  border-radius: var(--radius);
  transition: var(--transition);
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active { background: var(--light-gray); color: var(--accent); }
.nav-link svg { width: 14px; height: 14px; opacity: 0.6; }
.nav-cta {
  background: var(--primary) !important;
  color: white !important;
  padding: 8px 20px !important;
  border-radius: 6px !important;
}
.nav-cta:hover { background: var(--primary-lt) !important; }
.dropdown {
  display: none;
  position: absolute; top: 100%; padding-top: 6px; left: 0;
  background: var(--white);
  border: 1px solid #dde5f0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  min-width: 220px;
  padding: 6px 0;
  z-index: 999;
}
.nav-item:hover .dropdown { display: block; }
.dropdown a {
  display: block; padding: 9px 18px;
  font-size: 0.86rem; color: #3a4d6b;
  transition: var(--transition);
  border-left: 3px solid transparent;
}
.dropdown a:hover { background: var(--light-gray); color: var(--accent); padding-left: 24px; border-color: var(--accent); }
.dropdown a.active-sub { color: var(--accent); font-weight: 600; border-left: 3px solid var(--accent); padding-left: 15px; }

/* ===== PAGE HERO ===== */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-lt) 60%, #0e6faf 100%);
  padding: 60px 0 50px;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; top: -60px; right: -60px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}
.page-hero::after {
  content: '';
  position: absolute; bottom: -80px; left: -40px;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: rgba(0,168,232,0.12);
}
.page-hero .container { position: relative; z-index: 1; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: rgba(255,255,255,0.65); margin-bottom: 16px; }
.breadcrumb a { color: rgba(255,255,255,0.65); }
.breadcrumb a:hover { color: var(--accent-lt); }
.breadcrumb svg { width: 12px; height: 12px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(0,168,232,0.2);
  border: 1px solid rgba(0,168,232,0.4);
  color: var(--accent-lt);
  font-size: 0.75rem; padding: 4px 12px;
  border-radius: 20px; margin-bottom: 14px;
  letter-spacing: 0.05em; font-weight: 500;
}
.page-hero h1 { font-size: 2.2rem; font-weight: 700; color: var(--white); margin-bottom: 10px; letter-spacing: 0.02em; }
.page-hero p { color: rgba(255,255,255,0.75); font-size: 0.95rem; max-width: 520px; }

/* ===== MAIN LAYOUT ===== */
.main-layout { display: grid; grid-template-columns: 240px 1fr; gap: 28px; padding: 36px 0 64px; }

/* ===== SIDEBAR ===== */
.sidebar { display: flex; flex-direction: column; gap: 20px; }
.sidebar-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.sidebar-card .card-header {
  background: var(--primary); color: var(--white);
  padding: 13px 18px; font-size: 0.88rem; font-weight: 600;
  letter-spacing: 0.04em; display: flex; align-items: center; gap: 8px;
}
.sidebar-card .card-header svg { width: 15px; height: 15px; opacity: 0.8; }
.sidebar-card ul { padding: 8px 0; }
.sidebar-card ul li a {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 18px; font-size: 0.87rem; color: #3a4d6b;
  transition: var(--transition); border-left: 3px solid transparent;
}
.sidebar-card ul li a:hover { background: var(--light-gray); color: var(--accent); border-color: var(--accent); }
.sidebar-card ul li a.active { background: #eaf4fb; color: var(--accent); font-weight: 600; border-color: var(--accent); }
.sidebar-card ul li a svg { width: 13px; height: 13px; opacity: 0.5; flex-shrink: 0; }

/* ===== CONTENT AREA ===== */
.content-area { display: flex; flex-direction: column; gap: 24px; }

/* ===== CARDS ===== */
.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; transition: var(--transition); }
.card:hover { box-shadow: var(--shadow-md); }
.card-title-bar { display: flex; align-items: center; gap: 10px; padding: 18px 28px; border-bottom: 1px solid var(--light-gray); }
.card-title-bar .icon-wrap {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.card-title-bar .icon-wrap svg { width: 18px; height: 18px; }
.card-title-bar h2 { font-size: 1.1rem; font-weight: 700; color: var(--primary); letter-spacing: 0.03em; }
.card-body { padding: 28px; }

/* ===== STATS ===== */
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat-item {
  background: linear-gradient(135deg, #eaf4fb 0%, #f0f4ff 100%);
  border: 1px solid #d0e4f5; border-radius: var(--radius);
  padding: 20px; text-align: center; position: relative; overflow: hidden;
}
.stat-item::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--primary), var(--accent)); }
.stat-num { font-size: 1.8rem; font-weight: 700; color: var(--primary); line-height: 1.1; }
.stat-label { font-size: 0.8rem; color: var(--gray); margin-top: 4px; }

/* ===== INFO TABLE ===== */
.info-table { width: 100%; border-collapse: collapse; }
.info-table tr { border-bottom: 1px solid #eef1f6; }
.info-table tr:last-child { border-bottom: none; }
.info-table td { padding: 14px 0; vertical-align: top; font-size: 0.92rem; }
.info-table td:first-child { width: 160px; color: var(--gray); font-weight: 500; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.info-table td:first-child svg { width: 15px; height: 15px; color: var(--accent); flex-shrink: 0; }
.info-table td:last-child { color: #2c3e50; font-weight: 500; padding-left: 12px; }
.info-table a { color: var(--accent); }
.info-table a:hover { text-decoration: underline; }

/* ===== TAGS ===== */
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.tag { background: var(--light-gray); color: var(--primary); border: 1px solid #c8d8ec; font-size: 0.8rem; padding: 4px 12px; border-radius: 20px; font-weight: 500; transition: var(--transition); }
.tag:hover { background: var(--primary); color: white; border-color: var(--primary); }

/* ===== HOURS ===== */
.hours-row { display: flex; align-items: center; gap: 10px; background: linear-gradient(90deg, #eaf4fb, #f5f8ff); border: 1px solid #d0e4f5; border-radius: var(--radius); padding: 14px 20px; margin-top: 6px; }
.hours-row svg { color: var(--accent); width: 18px; height: 18px; flex-shrink: 0; }
.hours-text { font-size: 0.92rem; color: #2c3e50; font-weight: 500; }
.badge-open { margin-left: auto; background: #d4edda; color: #155724; font-size: 0.75rem; padding: 3px 10px; border-radius: 20px; font-weight: 600; }

/* ===== FOOTER ===== */
.footer { background: var(--dark); color: rgba(255,255,255,0.7); padding: 50px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 36px; padding-bottom: 40px; }
.footer-brand .name { font-size: 1.1rem; font-weight: 700; color: white; margin-bottom: 10px; }
.footer-brand p { font-size: 0.82rem; line-height: 1.8; color: rgba(255,255,255,0.55); }
.footer-col h4 { font-size: 0.88rem; font-weight: 600; color: white; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,0.1); letter-spacing: 0.04em; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 0.82rem; color: rgba(255,255,255,0.55); transition: var(--transition); display: flex; align-items: center; gap: 6px; }
.footer-col ul li a:hover { color: var(--accent-lt); padding-left: 4px; }
.footer-col ul li a svg { width: 12px; height: 12px; opacity: 0.6; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 10px; font-size: 0.82rem; color: rgba(255,255,255,0.55); margin-bottom: 10px; }
.footer-contact-item svg { width: 14px; height: 14px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 18px 0; display: flex; justify-content: space-between; align-items: center; font-size: 0.78rem; color: rgba(255,255,255,0.35); }
.footer-bottom a { color: rgba(255,255,255,0.35); }
.footer-bottom a:hover { color: var(--accent-lt); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .main-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .page-hero h1 { font-size: 1.6rem; }
  .nav-menu { display: none; }
  .stats-grid { grid-template-co