/* ============ 卓裕青年貿易促進會 - 全站樣式 ============ */
:root {
  --navy: #0b2545;
  --navy-2: #13315c;
  --gold: #c9a227;
  --gold-light: #e3c565;
  --ink: #1d2733;
  --grey: #5b6b7b;
  --bg: #f7f9fb;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 37, 69, 0.10);
  font-size: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.75;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container { width: min(1140px, 92%); margin: 0 auto; }

/* ---------- 頂部導航 ---------- */
.topbar {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.82rem;
  padding: 6px 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.topbar span { margin-right: 18px; }
.topbar .lang { color: var(--gold-light); letter-spacing: 1px; }

header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(11, 37, 69, 0.08);
  box-shadow: 0 2px 12px rgba(11, 37, 69, 0.06);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 46px; height: 46px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 60%, #1d4a7a 100%);
  color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.05rem; letter-spacing: 1px;
  flex-shrink: 0;
}
.brand-name { font-weight: 700; font-size: 1.08rem; color: var(--navy); line-height: 1.3; }
.brand-sub { font-size: 0.68rem; color: var(--grey); letter-spacing: 0.6px; }

nav.main-nav ul { display: flex; gap: 6px; align-items: center; }
nav.main-nav a {
  display: block;
  padding: 8px 16px;
  font-size: 0.95rem;
  color: var(--ink);
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.2s;
}
nav.main-nav a:hover { background: rgba(11, 37, 69, 0.06); color: var(--navy); }
nav.main-nav a.active { color: var(--navy); font-weight: 700; position: relative; }
nav.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 16px; right: 16px; bottom: 2px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}
.nav-cta {
  background: var(--navy);
  color: #fff !important;
  padding: 9px 20px !important;
  border-radius: 999px !important;
}
.nav-cta:hover { background: var(--navy-2) !important; }

/* 漢堡選單（手機） */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: var(--navy); margin: 5px 0; border-radius: 2px; transition: 0.25s; }

/* ---------- 首頁 Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url("../images/hero.png") center / cover no-repeat;
}
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(6, 24, 48, 0.92) 0%, rgba(9, 32, 63, 0.78) 45%, rgba(11, 37, 69, 0.45) 100%);
}
.hero-inner {
  position: relative;
  padding: 130px 0 150px;
  max-width: 720px;
}
.hero-kicker {
  display: inline-block;
  letter-spacing: 3px;
  font-size: 0.78rem;
  color: var(--gold-light);
  border: 1px solid rgba(227, 197, 101, 0.5);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
  text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.28;
  margin-bottom: 18px;
}
.hero h1 em { color: var(--gold-light); font-style: normal; }
.hero p { font-size: 1.05rem; color: rgba(255, 255, 255, 0.88); margin-bottom: 34px; max-width: 560px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  transition: all 0.25s;
  cursor: pointer;
}
.btn-gold { background: var(--gold); color: #10233d; }
.btn-gold:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(201, 162, 39, 0.35); }
.btn-ghost { border: 1.5px solid rgba(255, 255, 255, 0.65); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(11, 37, 69, 0.25); }
.btn-outline-navy { border: 1.5px solid var(--navy); color: var(--navy); }
.btn-outline-navy:hover { background: var(--navy); color: #fff; }

/* hero 底部數據條 */
.hero-stats {
  position: relative;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(6px);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 22px 10px;
  margin-top: 60px;
  text-align: center;
}
.hero-stats .num { font-size: 1.5rem; font-weight: 800; color: var(--gold-light); }
.hero-stats .lbl { font-size: 0.8rem; color: rgba(255, 255, 255, 0.75); }

/* ---------- 通用區塊 ---------- */
section.section { padding: 84px 0; }
section.section.alt { background: var(--bg); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 52px; }
.section-head .eyebrow {
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 3px;
  font-size: 0.8rem;
  text-transform: uppercase;
  display: block;
  margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--navy); font-weight: 800; margin-bottom: 12px; }
.section-head p { color: var(--grey); }

/* 卡片 */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; }
.card {
  background: var(--white);
  border: 1px solid rgba(11, 37, 69, 0.07);
  border-radius: var(--radius);
  padding: 34px 28px;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(11, 37, 69, 0.16); }
.card .icon {
  width: 54px; height: 54px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}
.card h3 { color: var(--navy); font-size: 1.12rem; margin-bottom: 10px; font-weight: 700; }
.card p { color: var(--grey); font-size: 0.93rem; }
.card .tag {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.75rem;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 1px;
}

/* 深色帶 */
.band {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  padding: 72px 0;
  text-align: center;
}
.band h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; margin-bottom: 14px; }
.band p { color: rgba(255, 255, 255, 0.8); max-width: 640px; margin: 0 auto 30px; }

/* 頁腳 */
footer.site-footer { background: #081c36; color: rgba(255, 255, 255, 0.72); padding: 64px 0 0; font-size: 0.92rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 44px; padding-bottom: 48px; }
.footer-grid h4 { color: #fff; font-size: 1rem; margin-bottom: 18px; font-weight: 700; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a:hover { color: var(--gold-light); }
.footer-brand .brand-mark { margin-bottom: 14px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .fi { color: var(--gold-light); flex-shrink: 0; margin-top: 3px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
}

/* 內頁 banner */
.page-banner {
  position: relative;
  color: #fff;
  padding: 88px 0 78px;
  overflow: hidden;
  background: linear-gradient(115deg, var(--navy) 0%, #123a6b 70%, #1c5085 100%);
}
.page-banner::before {
  content: "";
  position: absolute; inset: 0;
  background: url("../images/trade.png") center / cover no-repeat;
  opacity: 0.18;
}
.page-banner .container { position: relative; }
.page-banner h1 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 800; margin-bottom: 8px; }
.page-banner .crumb { font-size: 0.85rem; color: rgba(255, 255, 255, 0.7); letter-spacing: 2px; }
.page-banner p.lead { color: rgba(255, 255, 255, 0.85); max-width: 640px; margin-top: 14px; }

/* 圖文雙欄 */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split .media img { border-radius: var(--radius); box-shadow: var(--shadow); }
.split h2 { color: var(--navy); font-size: 1.7rem; font-weight: 800; margin-bottom: 18px; }
.split p { color: var(--grey); margin-bottom: 14px; }
.checklist li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 0.97rem;
}
.checklist li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(201, 162, 39, 0.15);
  color: var(--gold);
  font-size: 0.75rem;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
}

/* 流程步驟 */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; counter-reset: step; }
.step {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid rgba(11, 37, 69, 0.07);
  padding: 30px 26px;
  position: relative;
  box-shadow: var(--shadow);
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-size: 2.2rem;
  font-weight: 800;
  color: rgba(201, 162, 39, 0.25);
  display: block;
  margin-bottom: 8px;
}
.step h3 { color: var(--navy); font-size: 1.05rem; margin-bottom: 8px; }
.step p { color: var(--grey); font-size: 0.9rem; }

/* 聯絡頁 */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 44px; align-items: start; }
.person-card {
  display: flex;
  gap: 20px;
  background: var(--white);
  border: 1px solid rgba(11, 37, 69, 0.08);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  align-items: flex-start;
}
.avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), #1d4a7a);
  color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem;
  font-weight: 800;
  flex-shrink: 0;
}
.person-card h3 { color: var(--navy); font-size: 1.15rem; }
.person-card .role { color: var(--gold); font-size: 0.82rem; font-weight: 700; letter-spacing: 1px; margin-bottom: 10px; }
.person-card .tel { display: inline-block; background: var(--bg); padding: 7px 16px; border-radius: 999px; font-weight: 600; color: var(--navy); font-size: 0.92rem; }
.info-list li { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px dashed rgba(11, 37, 69, 0.12); align-items: flex-start; }
.info-list .fi {
  width: 42px; height: 42px; border-radius: 10px;
  background: rgba(11, 37, 69, 0.07);
  color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 1.1rem;
}
.info-list h4 { color: var(--navy); font-size: 0.95rem; margin-bottom: 2px; }
.info-list p { color: var(--grey); font-size: 0.92rem; }

/* 表單 */
.contact-form { background: var(--white); border: 1px solid rgba(11, 37, 69, 0.08); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.contact-form h3 { color: var(--navy); margin-bottom: 22px; font-size: 1.2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid rgba(11, 37, 69, 0.15);
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--bg);
  transition: border 0.2s;
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: #fff;
}
.form-note { font-size: 0.78rem; color: var(--grey); margin-top: 10px; }

/* 頁面動效 */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* 響應式 */
@media (max-width: 900px) {
  .split, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  nav.main-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid rgba(11, 37, 69, 0.1);
    box-shadow: 0 14px 30px rgba(11, 37, 69, 0.12);
    display: none;
  }
  nav.main-nav.open { display: block; }
  nav.main-nav ul { flex-direction: column; align-items: stretch; padding: 12px 0; gap: 0; }
  nav.main-nav a { padding: 13px 6%; }
  nav.main-nav a.active::after { display: none; }
  nav.main-nav a.active { background: rgba(201, 162, 39, 0.1); }
  .hero-inner { padding: 90px 0 100px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .form-row { grid-template-columns: 1fr; }
  .topbar span { margin-right: 8px; }
}
