/* ============================================================
   Yongkang Magna Trading Co., Ltd. — Common Styles
   ============================================================ */

/* ========== Reset & Base ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', Arial, sans-serif; color: #333; background: #fff; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; width: 100%; }

/* ========== Top Bar ========== */
.top-bar {
  background: #2d2d2d; color: #fff; text-align: center;
  padding: 12px 0; font-size: 20px; font-weight: bold; letter-spacing: 1px;
}

/* ========== Navigation ========== */
.nav-wrap { background: #ffde2d; position: relative; z-index: 100; }
.nav-inner {
  max-width: 1200px; margin: 0 auto; display: flex;
  align-items: center; justify-content: space-between; width: 100%;
}
.nav-menu { display: flex; align-items: center; height: 50px; }
.nav-menu > li { position: relative; height: 50px; display: flex; align-items: center; }
.nav-menu > li > a {
  color: #000; font-size: 16px; font-weight: 600;
  padding: 0 28px; height: 50px; line-height: 50px;
  display: block; transition: background .2s;
}
.nav-menu > li > a:hover,
.nav-menu > li:hover > a { background: rgba(0,0,0,.08); }
.nav-menu > li > a.active { background: rgba(0,0,0,.1); }

/* Dropdown Level 2 */
.nav-menu li .dropdown {
  display: none; position: absolute; top: 50px; left: 0;
  background: #fff; min-width: 220px;
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
  border-radius: 0 0 4px 4px; z-index: 200;
}
.nav-menu li:hover > .dropdown { display: block; }
.dropdown li { position: relative; }
.dropdown li a {
  display: block; padding: 10px 20px; color: #333;
  font-size: 14px; transition: background .2s;
  border-bottom: 1px solid #f0f0f0;
}
.dropdown li a:hover { background: #ffde2d; color: #000; }
.dropdown li:last-child > a { border-bottom: none; }

/* Dropdown Level 3 (flyout right) */
.dropdown li .dropdown {
  top: 0; left: 100%; border-radius: 0 4px 4px 0;
}
.dropdown li.has-sub > a::after {
  content: '▸'; float: right; font-size: 12px; color: #999;
}
.dropdown li.has-sub:hover > a::after { color: #000; }

/* Search - hidden by default */
.nav-search { display: none; align-items: center; }
.nav-search input {
  height: 34px; width: 200px; border: none;
  padding: 0 12px; font-size: 14px; border-radius: 4px 0 0 4px; outline: none;
}
.nav-search button {
  height: 34px; padding: 0 18px; background: #e6c400;
  color: #000; border: none; font-size: 14px; font-weight: 600;
  cursor: pointer; border-radius: 0 4px 4px 0;
}

/* ========== Footer ========== */
.footer { background: #2d2d2d; color: #ccc; padding: 40px 0; }
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: flex-start;
}
.footer-left h2 { color: #fff; font-size: 20px; margin-bottom: 8px; }
.footer-left .tagline { color: #aaa; font-size: 14px; margin-bottom: 16px; font-style: italic; }
.footer-left hr { border: none; border-top: 1px solid #555; margin-bottom: 16px; }
.footer-center { text-align: center; }
.footer-center .quick-links { margin-bottom: 12px; }
.footer-center .quick-links a { color: #ccc; font-size: 13px; margin: 0 10px; transition: color .2s; }
.footer-center .quick-links a:hover { color: #ffde2d; }
.footer-qr {
  width: 90px; height: 90px; background: #fff; border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  margin: 10px auto 6px; font-size: 12px; color: #999;
}
.footer-qr-label { font-size: 12px; color: #aaa; text-align: center; }
.footer-right { text-align: right; }
.footer-right h4 { color: #fff; font-size: 16px; margin-bottom: 10px; }
.footer-right .email { color: #ccc; font-size: 14px; }
.footer-right .email span { margin-right: 6px; }

/* ========== Copyright ========== */
.copyright { background: #222; color: #888; text-align: center; padding: 14px 0; font-size: 13px; }

/* ========== Sub-page Product List ========== */
.page-header { background: #f5f5f5; padding: 30px 0; text-align: center; }
.page-header h1 { font-size: 28px; font-weight: bold; color: #222; }
.page-content { padding: 40px 0; text-align: center; }
.page-content img { max-width: 100%; height: auto; display: inline-block; border-radius: 4px; }

/* ========== Common Button ========== */
.btn-yellow {
  display: inline-block; background: #ffde2d; color: #000;
  padding: 10px 32px; font-size: 15px; font-weight: 600;
  border-radius: 4px; transition: background .2s;
  border: none; cursor: pointer;
}
.btn-yellow:hover { background: #e6c400; }
