:root {
  --primary: #1a4f8b;
  --primary-light: #2c6cab;
  --primary-dark: #0d3266;
  --accent: #d4a017;
  --accent-light: #e8c040;
  --white: #ffffff;
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

.navbar {
  position: fixed; top: 0; left: 0; width: 100%; height: 76px;
  background: rgba(255, 255, 255, 0.97); backdrop-filter: blur(12px);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06); z-index: 1000;
  display: flex; align-items: center; justify-content: space-between; padding: 0 5%;
}
.navbar .logo img { height: 46px; object-fit: contain; }
.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a { text-decoration: none; color: var(--text-dark); font-size: 15px; font-weight: 500; transition: color 0.3s; position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-links a::after { content: ''; position: absolute; bottom: -6px; left: 0; width: 0; height: 2px; background: var(--accent); transition: width 0.3s; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-right { display: flex; align-items: center; gap: 20px; }
.nav-phone { font-size: 18px; font-weight: 700; color: var(--primary); text-decoration: none; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.nav-phone i { color: var(--accent); font-size: 16px; }
.nav-cta { background: var(--primary); color: var(--white); padding: 8px 24px; border-radius: 6px; font-size: 14px; text-decoration: none; transition: background 0.3s; }
.nav-cta:hover { background: var(--primary-dark); }
.nav-toggle { display: none; background: none; border: none; font-size: 24px; color: var(--primary); cursor: pointer; padding: 4px 8px; }

.page-header { margin-top: 76px; padding: 100px 5% 70px; text-align: center; background: var(--primary-dark); position: relative; overflow: hidden; color: var(--white); }
.page-header::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle at 20% 30%, rgba(212, 160, 23, 0.10) 0%, transparent 50%), radial-gradient(circle at 80% 70%, rgba(212, 160, 23, 0.06) 0%, transparent 40%); pointer-events: none; }
.page-header-content { position: relative; z-index: 2; max-width: 800px; margin: 0 auto; }
.page-header .sub-tagline { font-size: 14px; color: var(--accent-light); margin-bottom: 12px; letter-spacing: 6px; }
.page-header h1 { font-size: 36px; font-weight: 700; color: var(--white); margin-bottom: 12px; letter-spacing: 3px; }
.page-header p { font-size: 15px; color: rgba(255, 255, 255, 0.8); }

#contact { padding-top: 52px; padding-bottom: 52px; }
.contact-wrap { max-width: 900px; margin: 0 auto; }
.contact-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 50px; align-items: center; }
.contact-info h2 { font-size: 28px; color: var(--white); margin-bottom: 12px; letter-spacing: 3px; }
.contact-info > p { color: rgba(255, 255, 255, 0.7); margin-bottom: 32px; font-size: 15px; }
.contact-list { display: flex; flex-direction: column; gap: 18px; }
.contact-row { display: flex; align-items: flex-start; gap: 14px; }
.contact-row i { font-size: 18px; color: var(--accent); margin-top: 2px; flex-shrink: 0; }
.contact-row .c-detail { flex: 1; }
.contact-row .label { font-size: 12px; color: rgba(255, 255, 255, 0.5); margin-bottom: 3px; }
.contact-row .value { font-size: 16px; color: var(--white); font-weight: 500; line-height: 1.5; }
.contact-qr { text-align: center; }
.contact-qr .qr-frame { display: inline-block; padding: 12px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); border-radius: 16px; }
.contact-qr .qr-frame img { width: 160px; height: 160px; border-radius: 8px; display: block; }
.contact-qr .qr-label { margin-top: 14px; font-size: 14px; color: var(--white); font-weight: 600; }
.contact-qr .qr-sub { margin-top: 4px; font-size: 12px; color: rgba(255, 255, 255, 0.5); }
footer { background: var(--primary-dark); padding: 30px 5%; text-align: center; }
footer p { color: rgba(255, 255, 255, 0.5); font-size: 13px; }
footer a { color: inherit; }

.qr-modal-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.5); z-index: 9999; display: none; align-items: center; justify-content: center; backdrop-filter: blur(4px); }
.qr-modal-overlay.show { display: flex; }
.qr-modal { background: #fff; border-radius: 20px; padding: 40px 36px 32px; max-width: 320px; width: 88%; text-align: center; position: relative; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); animation: modalIn 0.3s ease; }
@keyframes modalIn { from { opacity: 0; transform: scale(0.9) translateY(20px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.qr-modal-close { position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; border-radius: 50%; background: #f0f0f0; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 16px; color: #999; transition: all 0.3s; }
.qr-modal-close:hover { background: #e0e0e0; color: #666; }
.qr-modal h3 { font-size: 22px; font-weight: 700; color: #0d3266; margin-bottom: 8px; }
.qr-modal .qr-modal-sub { font-size: 13px; color: #999; margin-bottom: 24px; }
.qr-modal-img { width: 200px; height: 200px; margin: 0 auto 20px; border-radius: 12px; border: 1px solid #eef0f4; }
.qr-modal-tip { font-size: 14px; color: #666; margin-bottom: 4px; }
.qr-modal-tip span { color: #1a4f8b; font-weight: 600; }
.qr-modal-desc { font-size: 12px; color: #aaa; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .contact-layout { grid-template-columns: 1fr; gap: 36px; text-align: center; }
  .contact-list { align-items: center; }
}
@media (max-width: 600px) {
  .navbar { height: 60px; padding: 0 3%; }
  .navbar .logo img { height: 34px; }
  .nav-phone { font-size: 14px; }
  .nav-phone i { font-size: 12px; }
  .nav-cta { padding: 6px 16px; font-size: 12px; }
  .page-header { margin-top: 60px; padding: 60px 5% 50px; }
  .page-header h1 { font-size: 26px; letter-spacing: 2px; }
  #contact { padding-top: 40px; padding-bottom: 40px; }
  .contact-layout { gap: 30px; }
  .contact-row { flex-direction: column; gap: 4px; align-items: center; }
  .contact-row .value { font-size: 14px; }
  footer p { font-size: 12px; }
  .nav-links.mobile-open { display: flex !important; position: absolute; top: 60px; left: 0; right: 0; flex-direction: column; gap: 0; background: rgba(255,255,255,0.98); box-shadow: 0 4px 16px rgba(0,0,0,0.1); padding: 0; margin: 0; }
  .nav-links.mobile-open li { padding: 14px 5%; border-bottom: 1px solid #eef0f4; }
  .nav-links.mobile-open a { font-size: 15px; }
}
