/* ===== ADCC Rebuild – base ===== */
:root {
  --c-navy: #0a0e2c;
  --c-navy-deep: #050723;
  --c-blue: #2563eb;
  --c-blue-2: #38bdf8;
  --c-red: #dc2626;
  --c-red-2: #b91c1c;
  --c-gold: #f5a623;
  --c-amber: #fbbf24;
  --c-text: #0f172a;
  --c-text-light: #475569;
  --c-muted: #94a3b8;
  --c-line: #e2e8f0;
  --c-bg: #f8fafc;
  --c-bg-2: #eef2f7;
  --c-white: #ffffff;
  --shadow-sm: 0 1px 3px rgba(15,23,42,.06);
  --shadow-md: 0 6px 18px rgba(15,23,42,.08);
  --shadow-lg: 0 20px 40px rgba(15,23,42,.12);
  --sidebar-w: 280px;
  --radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang TC", "PingFang SC", "Microsoft JhengHei", "Microsoft YaHei", -apple-system, "Segoe UI", sans-serif;
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.65;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul { list-style: none; }
.hidden { display: none !important; }

/* ===== Alert bar ===== */
.alert-bar {
  background: linear-gradient(90deg, var(--c-red) 0%, var(--c-red-2) 100%);
  color: #fff;
  padding: 10px 20px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .3px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(220,38,38,.4);
  display: flex; align-items: center; justify-content: center; gap: 12px;
}
.alert-bar::before {
  content: ""; flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%;
  background: #fef08a; box-shadow: 0 0 12px #fef08a;
  animation: ping 1.6s infinite;
}
@keyframes ping { 0%,100% { opacity: 1 } 50% { opacity: .3 } }

/* ===== Layout ===== */
.layout { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar-w);
  background: linear-gradient(180deg, var(--c-navy-deep) 0%, var(--c-navy) 60%, #0f1442 100%);
  color: #cbd5e1;
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  flex-shrink: 0;
  z-index: 90;
  border-right: 1px solid rgba(255,255,255,.06);
}
.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 3px; }

.brand {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 22px; margin-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.brand-logo-wrap { width: 44px; height: 44px; flex-shrink: 0; overflow: hidden; border-radius: 10px; background: rgba(255,255,255,.08); display: grid; place-items: center; }
.brand-logo-wrap img { width: 100%; height: 100%; object-fit: contain; }
.brand-text { font-size: 14px; font-weight: 800; color: #fff; line-height: 1.3; letter-spacing: .3px; }

.sidenav { display: flex; flex-direction: column; gap: 4px; padding: 6px 0; flex: 1; }
.navlink {
  position: relative;
  padding: 11px 14px;
  border-radius: 10px;
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 500;
  transition: all .2s ease;
  display: flex; align-items: center; justify-content: space-between;
}
.navlink::before {
  content: ""; position: absolute; left: -22px; top: 50%; transform: translateY(-50%);
  width: 3px; height: 0; background: var(--c-gold); border-radius: 0 3px 3px 0;
  transition: height .25s ease;
}
.navlink:hover, .navlink.active {
  background: rgba(255,255,255,.07);
  color: #fff;
}
.navlink:hover::before, .navlink.active::before { height: 22px; }

.sidebar-cta { padding-top: 18px; }
.sidebar-foot { padding-top: 14px; border-top: 1px solid rgba(255,255,255,.08); margin-top: 14px; }
.adminbtn {
  width: 100%; padding: 9px 12px; border-radius: 8px;
  background: rgba(255,255,255,.05); color: #94a3b8; font-size: 12px;
  border: 1px solid rgba(255,255,255,.08);
  transition: all .2s;
}
.adminbtn:hover { background: rgba(255,255,255,.1); color: #fff; }

.main { flex: 1; min-width: 0; }
.hamburger {
  display: none;
  position: fixed; top: 12px; left: 12px;
  width: 42px; height: 42px;
  background: var(--c-navy); color: #fff; border-radius: 8px; font-size: 22px;
  z-index: 95;
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
}

/* ===== Buttons ===== */
.ws-btn { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; transition: all .25s ease; }
.btn-pill { padding: 12px 24px; border-radius: 999px; }
.btn-pill.big { padding: 16px 32px; font-size: 16px; }
.btn-red { background: linear-gradient(135deg, var(--c-red) 0%, var(--c-red-2) 100%); color: #fff; box-shadow: 0 8px 20px rgba(220,38,38,.35); }
.btn-red:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(220,38,38,.45); }
.btn-blue { background: linear-gradient(135deg, var(--c-blue) 0%, #1e40af 100%); color: #fff; box-shadow: 0 8px 20px rgba(37,99,235,.3); }
.btn-blue:hover { transform: translateY(-2px); }
.btn-gold { background: linear-gradient(135deg, var(--c-gold) 0%, #d97706 100%); color: #fff; box-shadow: 0 8px 20px rgba(245,166,35,.35); }
.btn-gold:hover { transform: translateY(-2px); }
.btn-block { display: block; width: 100%; text-align: center; padding: 16px; border-radius: 12px; }
.link-arrow {
  color: var(--c-blue); font-weight: 700; font-size: 14px;
  border-bottom: 1px dashed var(--c-blue); padding: 2px 0; gap: 4px;
}
.link-arrow:hover { color: var(--c-red); border-color: var(--c-red); }

/* ===== Section heads ===== */
.sec-head { padding: 0 0 30px 0; }
.sec-head.center { text-align: center; }
.sec-head.left { text-align: left; }
.sec-head .kicker {
  display: inline-block; font-size: 12px; font-weight: 800;
  letter-spacing: 3px; color: var(--c-blue);
  padding: 4px 12px; border: 1px solid rgba(37,99,235,.3);
  border-radius: 4px; background: rgba(37,99,235,.05);
}
.sec-head .kicker.gold { color: var(--c-gold); border-color: rgba(245,166,35,.4); background: rgba(245,166,35,.08); }
.sec-head h2 { font-size: clamp(22px, 3.4vw, 34px); font-weight: 900; color: var(--c-navy); margin: 12px 0 6px; letter-spacing: -.5px; line-height: 1.25; }
.sec-head h2.light { color: #fff; }
.sec-head p { color: var(--c-text-light); font-size: 15px; max-width: 720px; }
.sec-head p.muted { color: rgba(203,213,225,.85); }
.sec-head.center p { margin: 6px auto 0; }
.sec-head .bar {
  display: inline-block; width: 60px; height: 3px; border-radius: 3px;
  background: var(--c-blue); margin-top: 14px;
}
.sec-head .bar.gold { background: var(--c-gold); }
.sec-head.left .bar { display: block; margin-left: 0; }
/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 88vh;
  color: #fff;
  padding: 60px 60px 80px;
  overflow: hidden;
  background: linear-gradient(135deg, #050723 0%, #0a0e2c 50%, #1a1f5e 100%);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg-img { width: 100%; height: 100%; object-fit: cover; opacity: .22; }
.hero-bg-veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 600px at 18% 30%, rgba(37,99,235,.32), transparent 60%),
    radial-gradient(700px 500px at 90% 80%, rgba(220,38,38,.18), transparent 70%),
    linear-gradient(180deg, transparent 0%, rgba(5,7,35,.7) 100%);
}
.hero-grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(56,189,248,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56,189,248,.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 100%);
}

.hero-inner {
  position: relative; z-index: 1;
  max-width: 1180px; margin: 0 auto;
}
.hero-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-tag {
  display: inline-flex; align-items: center;
  padding: 8px 18px; border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(245,166,35,.4);
  color: var(--c-gold); font-size: 13px; font-weight: 700;
  backdrop-filter: blur(10px);
}
.hero-live { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #4ade80; font-weight: 700; }
.hero-live .dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 12px #4ade80; animation: ping 1.5s infinite; }

.hero-h1 {
  font-size: clamp(32px, 5vw, 60px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 24px;
}
.block { display: block; }
.hero-h1-accent {
  background: linear-gradient(90deg, #38bdf8 0%, #818cf8 50%, #f5a623 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-top: 6px;
}
.hero-desc {
  font-size: 16px; line-height: 1.85;
  color: #cbd5e1; max-width: 760px; margin-bottom: 32px;
}
.hero-cta-row { display: flex; gap: 14px; margin-bottom: 50px; flex-wrap: wrap; }

.hero-stats {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  padding: 20px 26px;
  backdrop-filter: blur(20px);
}
.hero-stats-head {
  font-size: 13px; font-weight: 800; color: var(--c-gold);
  padding-bottom: 12px; margin-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.hero-stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.stat-cell {
  position: relative;
  padding: 8px 0;
}
.stat-cell + .stat-cell { border-left: 1px solid rgba(255,255,255,.08); padding-left: 18px; }
.stat-num {
  display: block;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 900;
  color: #fff;
  background: linear-gradient(180deg, #fff 0%, #94a3b8 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  line-height: 1.1;
}
.stat-label { display: block; font-size: 12px; color: #94a3b8; margin-top: 4px; }

.hero-tip {
  margin-top: 22px;
  padding: 12px 18px;
  background: rgba(245,166,35,.1);
  border: 1px solid rgba(245,166,35,.25);
  border-radius: 10px;
  font-size: 13px;
  color: #fde68a;
  text-align: center;
}

/* ===== About ===== */
.about { padding: 80px 60px; background: #fff; position: relative; }
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center;
}
.about-text h3 { font-size: 24px; color: var(--c-navy); margin-bottom: 14px; font-weight: 800; }
.about-text p { color: var(--c-text-light); margin-bottom: 14px; line-height: 1.9; }
.duty-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0; }
.chip {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px 8px 14px;
  background: linear-gradient(135deg, rgba(37,99,235,.06) 0%, rgba(37,99,235,.02) 100%);
  border: 1px solid rgba(37,99,235,.18);
  border-radius: 999px;
  font-size: 13px; font-weight: 600; color: var(--c-navy);
}
.chip-tick { color: var(--c-blue); font-weight: 900; }

.about-media {
  position: relative; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #000;
  aspect-ratio: 16/10;
}
.about-media video { width: 100%; height: 100%; object-fit: cover; }
.media-overlay-tag {
  position: absolute; top: 14px; left: 14px;
  background: rgba(0,0,0,.7); color: #fff;
  padding: 6px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 600;
  backdrop-filter: blur(8px);
}

/* ===== Services (zig-zag) ===== */
.services { padding: 100px 60px; background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%); position: relative; }
.zig-list { display: flex; flex-direction: column; gap: 60px; max-width: 1180px; margin: 40px auto 0; }
.zig {
  position: relative;
  display: grid; grid-template-columns: 1fr 1fr; gap: 50px;
  align-items: center;
  padding: 30px;
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--c-line);
  transition: transform .3s ease, box-shadow .3s ease;
}
.zig:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.zig.zig-reverse { direction: rtl; }
.zig.zig-reverse > * { direction: ltr; }
.zig-media {
  position: relative; aspect-ratio: 4/3;
  border-radius: 14px; overflow: hidden;
  background: var(--c-bg-2);
}
.zig-media img { width: 100%; height: 100%; object-fit: cover; }
.zig-num {
  position: absolute; bottom: 12px; left: 12px;
  background: var(--c-navy); color: #fff;
  font-weight: 900; font-size: 22px;
  width: 50px; height: 50px;
  border-radius: 14px;
  display: grid; place-items: center;
  border: 3px solid #fff;
  box-shadow: var(--shadow-md);
}
.zig-body h3 { font-size: 24px; color: var(--c-navy); margin-bottom: 12px; font-weight: 800; }
.zig-body p { color: var(--c-text-light); margin-bottom: 20px; line-height: 1.9; }

.zig-body.color-blue h3 { border-left: 4px solid var(--c-blue); padding-left: 12px; }
.zig-body.color-red h3 { border-left: 4px solid var(--c-red); padding-left: 12px; }
.zig-body.color-pink h3 { border-left: 4px solid #ec4899; padding-left: 12px; }
.zig-body.color-green h3 { border-left: 4px solid #16a34a; padding-left: 12px; }
.zig-body.color-amber h3 { border-left: 4px solid var(--c-gold); padding-left: 12px; }
.zig-body.color-purple h3 { border-left: 4px solid #9333ea; padding-left: 12px; }
/* ===== Advantages (horizontal rows) ===== */
.advantages {
  padding: 100px 60px;
  background: linear-gradient(135deg, #0a0e2c 0%, #050723 100%);
  color: #fff;
  position: relative;
}
.advantages::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(56,189,248,.08) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: .5; pointer-events: none;
}
.sec-head.light h2 { color: #fff; }
.adv-stack {
  display: flex; flex-direction: column; gap: 24px;
  max-width: 1100px; margin: 40px auto 0;
  position: relative; z-index: 1;
}
.adv-row {
  position: relative;
  display: grid;
  grid-template-columns: 80px 200px 1fr;
  gap: 26px;
  align-items: center;
  padding: 28px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  transition: all .3s;
}
.adv-row:hover {
  background: rgba(255,255,255,.06);
  border-color: rgba(245,166,35,.3);
  transform: translateX(6px);
}
.adv-no {
  font-size: 56px; font-weight: 900;
  background: linear-gradient(180deg, var(--c-gold) 0%, #d97706 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  line-height: 1;
}
.adv-thumb { aspect-ratio: 4/3; border-radius: 12px; overflow: hidden; background: #000; }
.adv-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.adv-content h3 { font-size: 18px; color: #fff; margin-bottom: 10px; font-weight: 700; }
.adv-content p { color: #cbd5e1; line-height: 1.85; font-size: 14px; }

.adv-cta { text-align: center; margin-top: 50px; position: relative; z-index: 1; }

/* ===== Team ===== */
.team {
  padding: 100px 60px;
  background: linear-gradient(135deg, #050723 0%, #1a1f5e 50%, #0a0e2c 100%);
  color: #fff;
  position: relative;
}
.team-stage {
  position: relative; max-width: 1180px; margin: 40px auto 0;
}
.team-track {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  min-width: 0;
}
.lawyer-card {
  position: relative;
  padding: 26px 20px;
  background: linear-gradient(180deg, rgba(255,255,255,.06) 0%, rgba(255,255,255,.02) 100%);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  text-align: center;
  transition: all .3s;
}
.lawyer-card:hover {
  transform: translateY(-6px);
  border-color: var(--c-gold);
  box-shadow: 0 16px 40px rgba(245,166,35,.15);
}
.lawyer-avatar {
  width: 100px; height: 100px;
  margin: 0 auto 16px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--c-gold);
  background: #1e293b;
  box-shadow: 0 8px 20px rgba(0,0,0,.4);
}
.lawyer-avatar img { width: 100%; height: 100%; object-fit: cover; }
.lawyer-card h3 { font-size: 17px; color: #fff; font-weight: 800; margin-bottom: 6px; }
.lawyer-title {
  display: inline-block; font-size: 11px; color: var(--c-gold);
  font-weight: 700; letter-spacing: .5px; margin-bottom: 14px;
}
.lawyer-card p { font-size: 12.5px; color: #cbd5e1; line-height: 1.7; }
.team-cta { text-align: center; margin-top: 50px; }

/* ===== Cases ===== */
.cases { padding: 100px 60px; background: #fff; }
.case-list { display: flex; flex-direction: column; gap: 30px; max-width: 1100px; margin: 40px auto 0; }
.case-row {
  position: relative;
  display: grid; grid-template-columns: 320px 1fr; gap: 30px;
  background: var(--c-bg);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--c-line);
  box-shadow: var(--shadow-sm);
  transition: all .3s;
}
.case-row:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.case-img { aspect-ratio: 4/3; background: #1e293b; }
.case-img img { width: 100%; height: 100%; object-fit: cover; }
.case-body { padding: 26px 26px 22px 0; display: flex; flex-direction: column; gap: 12px; }
.case-tag {
  align-self: flex-start;
  background: linear-gradient(135deg, rgba(220,38,38,.08) 0%, rgba(245,166,35,.08) 100%);
  border: 1px solid rgba(220,38,38,.2);
  color: var(--c-red);
  padding: 5px 12px; border-radius: 6px;
  font-size: 12px; font-weight: 700;
}
.case-body h3 { font-size: 22px; color: var(--c-navy); font-weight: 800; }
.case-body p { color: var(--c-text-light); line-height: 1.85; font-size: 14px; }
.case-foot {
  margin-top: auto; padding-top: 12px;
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--c-line);
}
.case-result {
  background: #16a34a; color: #fff; font-size: 12px; font-weight: 700;
  padding: 4px 12px; border-radius: 999px;
}

/* ===== Process timeline ===== */
.process { padding: 100px 60px; background: linear-gradient(180deg, #eef2f7 0%, #f8fafc 100%); }
.timeline {
  position: relative; max-width: 880px; margin: 40px auto 0;
  padding-left: 30px;
}
.timeline::before {
  content: ""; position: absolute;
  left: 24px; top: 20px; bottom: 20px;
  width: 2px;
  background: linear-gradient(180deg, var(--c-blue) 0%, var(--c-gold) 50%, #16a34a 100%);
  opacity: .35;
}
.tl-row {
  position: relative; margin-bottom: 30px;
}
.tl-bullet {
  position: absolute; left: -30px; top: 26px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--c-navy);
  color: #fff;
  display: grid; place-items: center;
  font-weight: 900; font-size: 14px;
  border: 4px solid #fff;
  box-shadow: 0 4px 14px rgba(10,14,44,.25);
}
.tl-card {
  position: relative;
  margin-left: 38px;
  padding: 24px 26px;
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  display: grid; grid-template-columns: 80px 1fr; gap: 22px;
  align-items: center;
  border: 1px solid var(--c-line);
}
.tl-icon { width: 80px; height: 80px; background: var(--c-bg-2); border-radius: 14px; overflow: hidden; display: grid; place-items: center; padding: 16px; }
.tl-icon img { width: 100%; height: 100%; object-fit: contain; }
.tl-content h3 { font-size: 18px; color: var(--c-navy); margin-bottom: 8px; font-weight: 800; }
.tl-content p { color: var(--c-text-light); font-size: 14px; line-height: 1.85; }
.tl-arrow { display: none; }
/* ===== FAQ ===== */
.faq { padding: 100px 60px; background: #fff; }
.faq-list { max-width: 880px; margin: 40px auto 0; display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  position: relative;
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: 12px;
  overflow: hidden;
  transition: all .25s;
}
.faq-item[open] { border-color: var(--c-blue); box-shadow: var(--shadow-md); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 16px; font-weight: 700; color: var(--c-navy);
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 22px; color: var(--c-blue); font-weight: 300;
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(37,99,235,.1);
  transition: transform .25s;
}
.faq-item[open] summary::after { content: "−"; transform: rotate(180deg); }
.faq-item p {
  padding: 0 24px 22px;
  color: var(--c-text-light);
  line-height: 1.9;
  font-size: 14.5px;
  border-top: 1px solid var(--c-line);
  padding-top: 16px;
}

/* ===== Contact ===== */
.contact {
  padding: 60px 60px 100px;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}
.contact-card {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  background: linear-gradient(135deg, #0a0e2c 0%, #1a1f5e 100%);
  color: #fff;
  border-radius: 24px;
  padding: 44px 40px;
  box-shadow: 0 24px 50px rgba(10,14,44,.25);
  overflow: hidden;
}
.contact-card::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(245,166,35,.1) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: .5; pointer-events: none;
}
.contact-card > * { position: relative; z-index: 1; }
.contact-logo { width: 110px; height: 50px; margin-bottom: 18px; }
.contact-logo img { width: 100%; height: 100%; object-fit: contain; object-position: left; }
.contact-desc { color: #cbd5e1; font-size: 14px; line-height: 1.85; margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid rgba(255,255,255,.1); }
.contact-info { display: flex; flex-direction: column; gap: 18px; margin-bottom: 28px; }
.ci-row { display: flex; gap: 14px; align-items: flex-start; }
.ci-icon { font-size: 20px; color: var(--c-gold); flex-shrink: 0; }
.ci-label { display: block; font-size: 12px; color: #94a3b8; margin-bottom: 4px; }
.ci-val { font-size: 14px; color: #fff; font-weight: 600; }
.ci-val:hover { color: var(--c-gold); }
.contact-foot { text-align: center; margin-top: 12px; font-size: 12px; color: #94a3b8; }

/* ===== Footer ===== */
.footer {
  position: relative;
  background: #050723;
  color: #94a3b8;
  padding: 60px 60px 30px;
  border-top: 1px solid #1e293b;
}
.ft-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; max-width: 1180px; margin: 0 auto 40px; padding-bottom: 40px; border-bottom: 1px solid #1e293b; }
.ft-col { position: relative; }
.ft-col h4 { font-size: 14px; color: #fff; font-weight: 700; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.ft-icon { width: 18px; height: 18px; display: inline-grid; place-items: center; }
.ft-icon img { width: 100%; height: 100%; object-fit: contain; }
.ft-col ul li { position: relative; margin-bottom: 8px; }
.ft-col ul li a { font-size: 13px; transition: color .2s; }
.ft-col ul li a:hover { color: #fff; }
.ft-disclaim { font-size: 12px; color: #64748b; line-height: 1.8; }
.col-del { position: absolute; top: 0; right: 0; }
.ft-bottom {
  max-width: 1180px; margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center;
  font-size: 12px; color: #64748b;
}
.ft-links { display: flex; gap: 16px; }
.ft-links a { position: relative; transition: color .2s; }
.ft-links a:hover { color: #fff; }

/* ===== Float button ===== */
.float-btn {
  position: fixed; bottom: 28px; right: 28px;
  width: 60px; height: 60px;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  border-radius: 50%;
  box-shadow: 0 12px 30px rgba(37,211,102,.5);
  display: grid; place-items: center;
  color: #fff;
  z-index: 60;
  transition: all .25s;
}
.float-btn .fb-icon { display: grid; place-items: center; width: 30px; height: 30px; }
.float-btn .fb-icon svg { width: 30px; height: 30px; }
.float-btn:hover { transform: scale(1.1); }
.float-btn::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: #25d366; opacity: .5; z-index: -1;
  animation: ping 1.6s infinite;
}
.fb-tip {
  position: absolute; right: 100%; margin-right: 12px;
  background: var(--c-navy); color: #fff;
  padding: 8px 14px; border-radius: 10px;
  font-size: 13px; font-weight: 700; white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity .2s;
}
.float-btn:hover .fb-tip { opacity: 1; }

/* ===== Hero background edit button (only in editor mode) ===== */
.hero-bg-edit-btn {
  position: absolute;
  top: 20px; right: 20px;
  z-index: 20;
  background: rgba(245,166,35,.95);
  color: #050723;
  font-weight: 800;
  padding: 10px 18px;
  border-radius: 999px;
  border: 2px solid #fff;
  cursor: pointer;
  font-size: 13px;
  box-shadow: 0 8px 20px rgba(0,0,0,.4);
  transition: all .2s;
  display: inline-flex; align-items: center; gap: 6px;
}
.hero-bg-edit-btn:hover {
  background: #fff;
  transform: scale(1.05);
}
/* ===== Editor ===== */
.editbar {
  position: fixed; top: 0; left: 0; right: 0;
  background: linear-gradient(90deg, #0a0e2c 0%, #1e293b 100%);
  color: #fff;
  padding: 12px 20px;
  z-index: 110;
  box-shadow: 0 4px 20px rgba(0,0,0,.3);
  font-size: 13px;
}
.eb-section { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.eb-section > span:first-child { font-weight: 700; color: var(--c-gold); padding-right: 10px; border-right: 1px solid rgba(255,255,255,.15); }
.eb-section label { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #cbd5e1; }
.eb-section input, .eb-section select {
  background: rgba(255,255,255,.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,.15);
  padding: 5px 8px;
  border-radius: 6px;
  font-size: 12px;
  outline: none;
}
.eb-section input[type=color] { padding: 0; width: 34px; height: 28px; }
.eb-section input[type=number] { width: 60px; }
.eb-section button {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  transition: all .2s;
}
.eb-section button:hover { background: rgba(255,255,255,.15); }
.eb-section button.primary {
  background: linear-gradient(135deg, var(--c-blue) 0%, #1e40af 100%);
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(37,99,235,.4);
}
.eb-section button.primary:hover { background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%); }
.eb-wa { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #cbd5e1; margin-left: auto; }
.eb-wa input { width: 130px; }
.eb-hint { font-size: 11px; color: #94a3b8; margin-top: 8px; padding-left: 6px; }

body.editing { padding-top: 76px; }
body.editing .ed {
  outline: 1px dashed rgba(37,99,235,.45);
  outline-offset: 2px;
  cursor: text;
  border-radius: 3px;
  transition: outline-color .15s;
}
body.editing .ed:hover { outline-color: var(--c-blue); outline-style: solid; background: rgba(37,99,235,.05); }
body.editing .ed.selected { outline: 2px solid var(--c-gold); background: rgba(245,166,35,.08); }

body.editing .ed-img {
  position: relative;
  cursor: pointer;
}
body.editing .ed-img::after {
  content: "📷 點擊上傳";
  position: absolute; bottom: 6px; right: 6px;
  background: rgba(0,0,0,.75); color: #fff;
  padding: 4px 10px; border-radius: 6px;
  font-size: 11px; font-weight: 700;
  opacity: 0; transition: opacity .2s;
  pointer-events: none;
  z-index: 5;
}
body.editing .ed-img:hover::after { opacity: 1; }
body.editing .ed-img::before {
  content: ""; position: absolute; inset: 0;
  border: 2px dashed transparent;
  border-radius: inherit;
  transition: border-color .2s;
  pointer-events: none;
  z-index: 4;
}
body.editing .ed-img:hover::before { border-color: var(--c-gold); }

.del-btn, .del-btn-inline {
  display: none;
}
body.editing .del-btn {
  display: grid;
  position: absolute;
  top: 8px; right: 8px;
  width: 28px; height: 28px;
  background: var(--c-red);
  color: #fff;
  border-radius: 50%;
  place-items: center;
  font-size: 16px;
  font-weight: 700;
  z-index: 50;
  box-shadow: 0 4px 12px rgba(220,38,38,.4);
}
body.editing .del-btn:hover { background: #7f1d1d; transform: scale(1.1); }
body.editing .del-btn.sec-del {
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  font-size: 20px;
}
body.editing .del-btn-inline {
  display: inline-grid;
  width: 18px; height: 18px;
  background: rgba(220,38,38,.85);
  color: #fff;
  border-radius: 50%;
  place-items: center;
  font-size: 12px;
  margin-left: 6px;
  vertical-align: middle;
}
body.editing .del-btn-inline:hover { background: #7f1d1d; }
body.editing [data-mod] { position: relative; }

/* Modal */
.modal {
  position: fixed; inset: 0;
  background: rgba(5,7,35,.75);
  backdrop-filter: blur(4px);
  display: grid; place-items: center;
  z-index: 120;
}
.modal-inner {
  background: #fff;
  padding: 30px;
  border-radius: 16px;
  width: 360px;
  max-width: calc(100% - 40px);
  box-shadow: 0 30px 60px rgba(0,0,0,.4);
}
.modal-inner h3 { font-size: 20px; color: var(--c-navy); margin-bottom: 6px; }
.modal-inner p { font-size: 13px; color: var(--c-text-light); margin-bottom: 16px; }
.modal-inner input {
  width: 100%; padding: 11px 14px;
  border: 1px solid var(--c-line); border-radius: 8px;
  font-size: 14px; outline: none;
  margin-bottom: 14px;
}
.modal-inner input:focus { border-color: var(--c-blue); }
.modal-inner .row { display: flex; gap: 10px; }
.modal-inner button {
  padding: 9px 16px; border-radius: 8px;
  background: var(--c-bg-2); color: var(--c-text); font-weight: 600;
}
.modal-inner button.primary { background: var(--c-blue); color: #fff; }
.modal-inner button.primary:hover { background: #1e40af; }
.login-tip { font-size: 11px; color: var(--c-muted); margin-top: 14px; margin-bottom: 0; }
.login-tip code { background: var(--c-bg-2); padding: 2px 6px; border-radius: 4px; font-family: monospace; }

/* Responsive */
@media (max-width: 1024px) {
  .sidebar { position: fixed; left: -100%; transition: left .25s; }
  .sidebar.open { left: 0; }
  .hamburger { display: grid; place-items: center; }
  .hero, .about, .services, .advantages, .team, .cases, .process, .faq, .contact, .footer { padding-left: 24px; padding-right: 24px; }
  .about-grid { grid-template-columns: 1fr; }
  .zig, .zig.zig-reverse { grid-template-columns: 1fr; direction: ltr; }
  .adv-row { grid-template-columns: 60px 1fr; }
  .adv-row .adv-thumb { display: none; }
  .team-track { grid-template-columns: repeat(2, 1fr); }
  .case-row { grid-template-columns: 1fr; }
  .case-body { padding: 24px; }
  .ft-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats-row { grid-template-columns: 1fr 1fr; }
  .stat-cell + .stat-cell { border-left: 0; padding-left: 0; }
}
@media (max-width: 600px) {
  .team-track { grid-template-columns: 1fr; }
  .ft-grid { grid-template-columns: 1fr; }
  .ft-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .hero { padding: 50px 20px; min-height: auto; }
  .hero-h1 { font-size: 32px; }
  .editbar { padding: 8px 12px; }
  .eb-section { gap: 8px; }
  .eb-wa { margin-left: 0; width: 100%; }
}
/* ===== Language Switcher (Top Right) ===== */
.lang-switcher {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 500;
    display: flex;
    gap: 6px;
    background: rgba(10,14,44,0.9);
    backdrop-filter: blur(10px);
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.lang-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 2px solid transparent;
    background: rgba(255,255,255,0.08);
    color: #cbd5e1;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
    display: grid;
    place-items: center;
    font-weight: 700;
}

.lang-btn:hover {
    background: rgba(245,166,35,0.2);
    border-color: #f5a623;
    transform: translateY(-2px);
}

.lang-btn.active {
    background: linear-gradient(135deg, #f5a623, #f59e0b);
    color: #050723;
    border-color: #f59e0b;
    box-shadow: 0 4px 12px rgba(245,166,35,0.4);
}

.lang-btn[data-lang="zh-CN"] { font-size: 11px; }
.lang-btn[data-lang="zh-TW"] { font-size: 11px; }
.lang-btn[data-lang="ja"] { font-size: 14px; }
.lang-btn[data-lang="en"] { font-size: 12px; }

@media (max-width: 768px) {
    .lang-switcher {
        top: 12px;
        right: 60px;
        padding: 6px 8px;
    }
    .lang-btn {
        width: 32px;
        height: 32px;
        font-size: 11px !important;
    }
}
