*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --clr-primary: #0B3C5D;
  --clr-secondary: #1D6E6E;
  --clr-bg: #F5F7FA;
  --clr-accent: #F2B134;
  --clr-red: #C23B22;
  --clr-yellow: #F4C54A;
  --clr-green: #3A8E5A;
  --clr-dark: #0A1E28;
  --clr-border: #D8E0E6;
  --clr-text: #1B232B;
  --clr-text-light: #F5F7FA;
  --font-head: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', system-ui, -apple-system, sans-serif;
  --font-body: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', system-ui, -apple-system, sans-serif;
  --container-w: 1200px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 24px;
  --transition: 0.25s ease;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--clr-text);
  background-color: var(--clr-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

ul, ol {
  list-style: none;
}

a {
  color: var(--clr-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--clr-accent);
}

a:focus-visible {
  outline: 3px solid var(--clr-accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

button {
  font-family: var(--font-body);
  cursor: pointer;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--clr-primary);
}

p {
  margin-bottom: 1rem;
}

::selection {
  background: var(--clr-accent);
  color: var(--clr-dark);
}

.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.section {
  padding: 96px 0;
}

.section + .section {
  padding-top: 0;
}

.section-head {
  margin-bottom: 40px;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 900;
  color: var(--clr-primary);
  position: relative;
  padding-bottom: 12px;
}

.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 4px;
  background: linear-gradient(90deg, var(--clr-primary), var(--clr-secondary));
  border-radius: 2px;
}

.section-subtitle {
  margin-top: 12px;
  font-size: 17px;
  color: #556;
  max-width: 640px;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1002;
  background: var(--clr-accent);
  color: var(--clr-dark);
  padding: 8px 20px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
  outline: 3px solid rgba(255, 255, 255, 0.8);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 1003;
  background: rgba(10, 30, 40, 0.12);
  pointer-events: none;
}

.scroll-progress-bar {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--clr-accent), var(--clr-red), var(--clr-yellow));
  border-radius: 0 2px 2px 0;
  transition: width 0.08s linear;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 14px 20px 10px;
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--clr-primary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  min-height: 60px;
  padding: 6px 22px 6px 10px;
  box-shadow: 0 8px 32px rgba(10, 30, 40, 0.28);
  transition: box-shadow 0.3s ease;
}

.site-header:hover .header-inner {
  box-shadow: 0 12px 40px rgba(10, 30, 40, 0.32);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--clr-accent);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  font-weight: 900;
  font-size: 17px;
  color: var(--clr-dark);
  letter-spacing: 0;
  position: relative;
  overflow: hidden;
  line-height: 1.4;
}

.brand-mark-text {
  z-index: 1;
  position: relative;
}

.brand-mark-strip {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, #0B3C5D, #F5F7FA, #C23B22, #3A8E5A, #F4C54A);
}

.brand-name {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 0.02em;
  color: #fff;
  white-space: nowrap;
}

.brand:hover .brand-name {
  color: var(--clr-yellow);
}

.main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  flex-wrap: wrap;
}

.nav-item {
  position: relative;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 14.5px;
  font-weight: 500;
  border-radius: 999px;
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.nav-link[aria-current="page"] {
  color: var(--clr-accent);
  font-weight: 700;
  background: rgba(242, 177, 52, 0.12);
}

.nav-link[aria-current="page"]::after {
  content: '';
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 4px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.header-contact {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 6px 16px;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.header-contact::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--clr-green);
  flex-shrink: 0;
}

.header-contact:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--clr-yellow);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.16);
}

.nav-toggle-icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 20px;
}

.nav-toggle-line {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-footer {
  background: var(--clr-dark);
  color: rgba(255, 255, 255, 0.85);
  position: relative;
  overflow: hidden;
}

.prayer-strip {
  display: block;
  height: 4px;
  width: 100%;
  background: linear-gradient(90deg,
    #0B3C5D 0%, #0B3C5D 20%,
    #F5F7FA 20%, #F5F7FA 40%,
    #C23B22 40%, #C23B22 60%,
    #3A8E5A 60%, #3A8E5A 80%,
    #F4C54A 80%, #F4C54A 100%);
}

.footer-inner {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 72px 20px 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1.2fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.footer-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--clr-accent);
  color: var(--clr-dark);
  font-size: 16px;
  font-weight: 900;
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  letter-spacing: 0;
}

.footer-brand-name {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 900;
  color: #fff;
}

.footer-desc {
  font-size: 14.5px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 20px;
  max-width: 380px;
}

.footer-trust {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
}

.trust-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--clr-green);
  position: relative;
  margin-top: 3px;
}

.trust-icon::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 7px;
  width: 5px;
  height: 3px;
  border-left: 2px solid var(--clr-green);
  border-bottom: 2px solid var(--clr-green);
  transform: rotate(-45deg);
}

.footer-heading {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
}

.footer-heading::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 32px;
  height: 2px;
  background: var(--clr-accent);
  border-radius: 2px;
}

.footer-link-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link-list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 14.5px;
  text-decoration: none;
  transition: color 0.2s, padding-left 0.2s;
}

.footer-link-list a::before {
  content: '→';
  font-size: 13px;
  color: var(--clr-accent);
  opacity: 0;
  transition: opacity 0.2s;
}

.footer-link-list a:hover {
  color: var(--clr-yellow);
  padding-left: 4px;
}

.footer-link-list a:hover::before {
  opacity: 1;
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14.5px;
}

.contact-label {
  flex-shrink: 0;
  min-width: 40px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-contact-list a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-contact-list a:hover {
  color: var(--clr-yellow);
}

.contact-address {
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copyright {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
}

.footer-icp {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  margin: 0;
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 28px;
  z-index: 999;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--clr-accent), #E89E1E);
  color: var(--clr-dark);
  font-size: 20px;
  box-shadow: 0 6px 20px rgba(10, 30, 40, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: linear-gradient(135deg, var(--clr-yellow), var(--clr-accent));
  transform: translateY(-3px);
}

.back-to-top:active {
  transform: translateY(0);
}

.back-to-top:focus-visible {
  outline: 3px solid var(--clr-yellow);
  outline-offset: 3px;
}

.back-to-top-icon {
  display: block;
  line-height: 1;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font-body);
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
  line-height: 1.4;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--clr-accent);
  color: var(--clr-dark);
  border-color: var(--clr-accent);
}

.btn-primary:hover {
  background: #E89E1E;
  border-color: #E89E1E;
  color: var(--clr-dark);
}

.btn-secondary {
  background: transparent;
  color: var(--clr-dark);
  border-color: var(--clr-yellow);
}

.btn-secondary:hover {
  background: var(--clr-yellow);
  color: var(--clr-dark);
}

.btn-ghost {
  background: transparent;
  color: var(--clr-primary);
  border-color: var(--clr-primary);
}

.btn-ghost:hover {
  background: var(--clr-primary);
  color: #fff;
}

.card {
  background: #fff;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.card:hover {
  box-shadow: 0 8px 24px rgba(10, 30, 40, 0.08);
  transform: translateY(-2px);
}

.card-title {
  font-size: 20px;
  font-weight: 900;
  color: var(--clr-primary);
  margin-bottom: 8px;
}

.card-summary {
  font-size: 14.5px;
  line-height: 1.7;
  color: #556;
  margin-bottom: 16px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  line-height: 1.5;
  text-decoration: none;
}

.tag-red {
  background: rgba(194, 59, 34, 0.12);
  color: var(--clr-red);
  border: 1px solid rgba(194, 59, 34, 0.2);
}

.tag-green {
  background: rgba(58, 142, 90, 0.12);
  color: var(--clr-green);
  border: 1px solid rgba(58, 142, 90, 0.2);
}

.tag-blue {
  background: rgba(11, 60, 93, 0.12);
  color: var(--clr-primary);
  border: 1px solid rgba(11, 60, 93, 0.2);
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 14px;
  color: #778;
  margin-bottom: 24px;
  padding: 12px 0;
  border-bottom: 1px solid var(--clr-border);
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.breadcrumb li + li::before {
  content: '/';
  color: var(--clr-border);
  font-weight: 400;
}

.breadcrumb a {
  color: var(--clr-primary);
  text-decoration: none;
  font-weight: 500;
}

.breadcrumb a:hover {
  color: var(--clr-accent);
}

.breadcrumb [aria-current="page"] {
  color: #778;
  font-weight: 400;
  text-decoration: none;
  pointer-events: none;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.page-hero {
  position: relative;
  padding: 64px 48px;
  background: linear-gradient(135deg, var(--clr-primary) 0%, #0D4B73 55%, var(--clr-secondary) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  margin-bottom: 48px;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  pointer-events: none;
}

.page-hero::after {
  content: '';
  position: absolute;
  top: 14px;
  left: 14px;
  width: 28px;
  height: 28px;
  border-top: 3px solid var(--clr-accent);
  border-left: 3px solid var(--clr-accent);
  border-top-left-radius: 12px;
  pointer-events: none;
}

.page-hero-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: #fff;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.page-hero-desc {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.75);
  max-width: 560px;
  position: relative;
  z-index: 1;
}

.page-toc {
  background: #fff;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 32px;
}

.page-toc-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--clr-primary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.page-toc-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-toc-list a {
  display: inline-block;
  padding: 5px 14px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--clr-primary);
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.page-toc-list a:hover {
  background: var(--clr-primary);
  color: #fff;
  border-color: var(--clr-primary);
}

@media (max-width: 1024px) {
  .header-contact {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .section {
    padding: 64px 0;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: fixed;
    top: 76px;
    left: 16px;
    right: 16px;
    z-index: 999;
    background: var(--clr-primary);
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: 0 16px 40px rgba(10, 30, 40, 0.4);
    display: none;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .main-nav[data-open] {
    display: block;
    opacity: 1;
    transform: translateY(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .nav-link {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border-radius: var(--radius-sm);
  }

  .nav-link[aria-current="page"]::after {
    left: 16px;
    right: auto;
    width: 24px;
    bottom: 8px;
  }

  .header-inner {
    padding: 6px 14px 6px 8px;
  }

  .brand-name {
    font-size: 16px;
  }

  .brand-mark {
    padding: 3px 8px;
    font-size: 15px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 600px) {
  .container {
    padding-left: 14px;
    padding-right: 14px;
  }

  .section {
    padding: 48px 0;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .page-hero {
    padding: 48px 28px;
  }

  .page-hero::before {
    inset: 10px;
  }

  .footer-inner {
    padding: 48px 20px 24px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .back-to-top {
    right: 16px;
    bottom: 20px;
    width: 40px;
    height: 40px;
  }
}

:focus-visible {
  outline: 3px solid var(--clr-accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .scroll-progress-bar {
    transition: none;
  }

  .btn:hover {
    transform: none;
  }

  .card:hover {
    transform: none;
  }

  .back-to-top,
  .back-to-top.is-visible {
    transition: none;
  }

  .main-nav {
    transition: none;
  }
}

@media print {
  .site-header,
  .site-footer,
  .back-to-top,
  .scroll-progress {
    display: none !important;
  }
}
