:root {
  --bg: #f5f7fb;
  --card: #ffffff;
  --primary: #123a72;
  --primary-2: #1f5fbf;
  --accent: #f28c28;
  --text: #1b2430;
  --muted: #5f6b7a;
  --line: #dbe3ef;
  --shadow: 0 12px 32px rgba(18, 58, 114, 0.08);
  --radius: 18px;
  --max: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}
a { color: inherit; text-decoration: none; }
.container { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(219, 227, 239, 0.8);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 0; }
.nav-right {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
}
.brand img {
  display: none;
}
.brand span {
  display: inline-block;
}
.nav-links { display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: 0.95rem; }
.nav-links a.active { color: var(--primary); font-weight: 700; }
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(18, 58, 114, 0.08);
  border: 1px solid var(--line);
}
.lang-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}
.lang-switch a.active {
  background: var(--primary);
  color: #fff;
}
.hero, .page-hero {
  background: linear-gradient(135deg, rgba(18,58,114,0.96), rgba(31,95,191,0.88));
  color: white;
}
.hero { padding: 84px 0 72px; }
.page-hero { padding: 60px 0 48px; }
.hero-grid { display: grid; grid-template-columns: 1.25fr 0.95fr; gap: 32px; align-items: center; }
.eyebrow { display: inline-block; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,0.14); font-size: 0.88rem; margin-bottom: 18px; }
h1 { margin: 0 0 18px; font-size: clamp(2.2rem, 4vw, 4rem); line-height: 1.15; }
.page-hero h1 { font-size: clamp(2rem, 3.5vw, 3.2rem); }
.hero p, .page-hero p { margin: 0 0 24px; color: rgba(255,255,255,0.9); font-size: 1.04rem; max-width: 62ch; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 18px; border-radius: 999px; font-weight: 700; transition: transform .2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: white; }
.btn-secondary { border: 1px solid rgba(255,255,255,0.35); color: white; }
.hero-card, .card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.hero-card { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.16); color: white; box-shadow: 0 16px 40px rgba(0,0,0,0.15); }
section { padding: 72px 0; }
.section-title { margin: 0 0 12px; font-size: clamp(1.6rem, 2.5vw, 2.4rem); color: var(--primary); }
.section-desc { margin: 0 0 28px; color: var(--muted); max-width: 72ch; }
.grid { display: grid; gap: 22px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card h3, .card h4, .hero-card h3 { margin-top: 0; margin-bottom: 10px; color: var(--primary); }
.hero-card h3 { color: white; }
.card p { margin: 0; color: var(--muted); }
.list { margin: 0; padding-left: 18px; color: var(--muted); }
.hero-card .list, .hero-card ul { color: rgba(255,255,255,0.92); }
.band { background: linear-gradient(180deg, #eef4ff, #f9fbff); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.timeline { display: grid; gap: 14px; }
.step {
  display: grid; grid-template-columns: 72px 1fr; gap: 14px; align-items: start;
  background: white; border: 1px solid var(--line); border-radius: 16px; padding: 18px; box-shadow: var(--shadow);
}
.step-no {
  width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: var(--primary); color: white; font-weight: 800; font-size: 1.05rem;
}
.contact-box {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: white; border-radius: 24px; padding: 32px; box-shadow: 0 20px 50px rgba(18, 58, 114, 0.18);
}
.contact-box p, .contact-box li { color: rgba(255,255,255,0.9); }
footer { padding: 28px 0 48px; color: var(--muted); font-size: 0.95rem; }
/* Homepage color/style experiment: blue-black business card mood */
.home-card-style {
  background:
    radial-gradient(circle at top right, rgba(54, 107, 198, 0.08), transparent 22%),
    linear-gradient(180deg, #f5f7fb 0%, #eef3f9 100%);
}

.home-card-style .hero-cardlike,
.home-card-style .page-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(9, 13, 20, 0.34), rgba(9, 13, 20, 0.34)),
    url("hero-bg.jpg") center center / cover no-repeat;
}

.home-card-style .hero-cardlike::before,
.home-card-style .page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7,10,15,0.44) 0%, rgba(7,10,15,0.18) 32%, rgba(7,10,15,0.08) 100%),
    linear-gradient(180deg, rgba(255,255,255,0.04), transparent 25%);
  pointer-events: none;
}

.home-card-style .page-hero > .container,
.home-card-style .hero-cardlike > .container {
  position: relative;
  z-index: 1;
}

.home-card-style .hero-silver-stripe {
  display: none;
}

.home-card-style .hero h1 {
  text-shadow: 0 4px 18px rgba(0,0,0,0.28);
}

.home-card-style .hero p {
  color: rgba(239, 245, 255, 0.9);
}

.home-card-style .hero-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.05));
  border-color: rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
}

.home-card-style .btn-primary {
  background: linear-gradient(135deg, #f2f5f8, #cfd9e5 52%, #aebbc8);
  color: #122235;
}

.home-card-style .btn-secondary {
  border-color: rgba(255,255,255,0.28);
}

.home-card-style .brand img {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.home-card-style section:nth-of-type(2) .card,
.home-card-style section:nth-of-type(4) .card {
  border-top: 4px solid #2b5ea9;
}

.home-card-style .band {
  background: linear-gradient(180deg, #eef4fb, #e7eef8);
}

.home-card-style .contact-box {
  background: linear-gradient(125deg, #0f1722 0%, #193151 56%, #244b80 100%);
  position: relative;
  overflow: hidden;
}

.home-card-style .contact-box::after {
  content: "";
  position: absolute;
  right: -80px;
  top: 24px;
  width: 320px;
  height: 54px;
  transform: rotate(-14deg);
  background: linear-gradient(90deg, rgba(255,255,255,0), #dbe3ec 30%, #ffffff 50%, #c7d1db 70%, rgba(255,255,255,0));
  opacity: 0.75;
}

.home-card-style main > section:not(.hero-cardlike) {
  position: relative;
}

.home-card-style main > section:not(.hero-cardlike):not(.band) {
  background: linear-gradient(180deg, #f3f6fa 0%, #eaf0f7 100%);
}

.home-card-style main > section.band {
  background: linear-gradient(180deg, #dfe8f3 0%, #d4dfec 100%);
}

.home-card-style main > section:nth-of-type(3),
.home-card-style main > section:nth-of-type(5) {
  background: linear-gradient(135deg, #0f1723 0%, #17283f 58%, #24436d 100%);
}

.home-card-style main > section:nth-of-type(3) .section-title,
.home-card-style main > section:nth-of-type(3) .section-desc,
.home-card-style main > section:nth-of-type(5) .section-title,
.home-card-style main > section:nth-of-type(5) .section-desc,
.home-card-style main > section:nth-of-type(5) .card h3,
.home-card-style main > section:nth-of-type(5) .card p,
.home-card-style main > section:nth-of-type(5) .list {
  color: #eef4fb;
}

.home-card-style main > section:nth-of-type(3)::before,
.home-card-style main > section:nth-of-type(5)::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(255,255,255,0), #dce4ee 18%, #ffffff 50%, #c4ceda 82%, rgba(255,255,255,0));
  opacity: 0.8;
}

.home-card-style .section-title {
  color: #14283f;
  position: relative;
  padding-left: 18px;
}

.home-card-style .section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 6px;
  height: 1.1em;
  border-radius: 999px;
  background: linear-gradient(180deg, #8aa3c2, #d9e1ea);
}

.home-card-style .section-desc {
  color: #4d6076;
}

.home-card-style .card {
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(240,245,250,0.98));
  border: 1px solid #cfd8e3;
  box-shadow: 0 14px 34px rgba(24, 45, 76, 0.08);
  position: relative;
  overflow: hidden;
}

.home-card-style .card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #2f5d96, #c9d3de 60%, #edf2f7);
}

.home-card-style .card::after {
  content: "";
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, rgba(201,211,222,0.7), rgba(255,255,255,0));
  clip-path: polygon(100% 0, 0 0, 100% 100%);
  opacity: 0.75;
}

.home-card-style .card h3,
.home-card-style .card h4 {
  color: #18324c;
}

.home-card-style .card p,
.home-card-style .list {
  color: #55697d;
}

.home-card-style .step {
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(239,244,249,0.98));
  border: 1px solid #cfd8e3;
  box-shadow: 0 14px 34px rgba(21, 41, 67, 0.12);
}

.home-card-style .step-no {
  background: linear-gradient(135deg, #13345f, #2c5ea0 72%, #d5dee8 72%, #eff4f8 100%);
  color: #ffffff;
}

.home-card-style main > section:nth-of-type(5) .card {
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  border-color: rgba(255,255,255,0.16);
  box-shadow: 0 16px 38px rgba(0,0,0,0.18);
}

.home-card-style main > section:nth-of-type(5) .card::before {
  background: linear-gradient(90deg, #dce5ef, #ffffff 50%, rgba(255,255,255,0.18));
}

@media (max-width: 960px) {
  .hero-grid, .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .nav { align-items: flex-start; flex-direction: column; }
  .nav-right { width: 100%; justify-content: space-between; }
  .home-card-style .hero-silver-stripe {
    width: 340px;
    right: -110px;
    top: 42px;
  }
}
@media (max-width: 640px) {
  .hero { padding-top: 64px; }
  section { padding: 56px 0; }
  .step { grid-template-columns: 1fr; }
  .home-card-style .hero-silver-stripe,
  .home-card-style .contact-box::after {
    display: none;
  }
  .home-card-style .section-title {
    padding-left: 14px;
  }
}
