﻿:root {
  --primary: #1e3a8a;
  --primary-light: #3b82f6;
  --primary-dark: #0f172a;
  --accent: #ff5757;
  --accent-soft: #ffe4e4;
  --success: #059669;
  --success-soft: #d1fae5;
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-alt: #f1f5f9;
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #64748b;
  --border: #e2e8f0;
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 20px -2px rgba(0, 0, 0, 0.06), 0 2px 6px -1px rgba(0, 0, 0, 0.04);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text-main);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
header {
  background: linear-gradient(135deg, #161e44 0%, #243b78 100%);
  color: white;
  padding: 36px 0 32px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 24px rgba(22, 30, 68, 0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  background: white;
  padding: 2px;
}

.brand-title {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.brand-subtitle {
  font-size: 0.95rem;
  color: #cbd5e1;
  font-weight: 400;
}

/* Language Toggle */
.lang-switcher {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  padding: 3px;
  gap: 2px;
}

.lang-btn {
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: white;
  text-decoration: none;
  border-radius: 9999px;
  transition: all 0.2s ease;
}

.lang-btn.active {
  background: white;
  color: #161e44;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.lang-btn:hover:not(.active) {
  background: rgba(255, 255, 255, 0.2);
}

/* Main Container */
main {
  padding: 32px 0 64px 0;
}

/* Trust Badges */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.trust-badge {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease;
}

.trust-badge:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.trust-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.trust-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}

.trust-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Navigation / Jump Pills */
.nav-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  padding: 12px 16px;
  background: var(--surface-alt);
  border-radius: var(--radius-md);
}

.nav-pill {
  font-size: 0.85rem;
  color: var(--primary);
  text-decoration: none;
  padding: 6px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9999px;
  font-weight: 500;
  transition: all 0.2s;
}

.nav-pill:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Card */
.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  margin-bottom: 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.card-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--primary-dark);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tag-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 4px 10px;
  border-radius: 9999px;
  margin-bottom: 20px;
}

h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 32px 0 12px 0;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--surface-alt);
}

h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  margin: 20px 0 8px 0;
}

p {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 0.98rem;
}

ul {
  margin: 0 0 16px 24px;
  color: var(--text-muted);
}

li {
  margin-bottom: 8px;
  font-size: 0.95rem;
}

strong {
  color: var(--text-main);
}

a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

/* Info Box */
.info-box {
  background: #f0fdf4;
  border-left: 4px solid var(--success);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px;
  margin: 20px 0;
  color: #166534;
  font-size: 0.95rem;
}

.info-box-title {
  font-weight: 700;
  margin-bottom: 4px;
  color: #14532d;
}

/* Data Map Table */
.table-wrap {
  overflow-x: auto;
  margin: 20px 0 28px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  text-align: left;
}

th {
  background: var(--surface-alt);
  color: var(--text-main);
  font-weight: 600;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background: #f8fafc;
}

/* Contact Box */
.contact-box {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-top: 24px;
}

.contact-email {
  display: inline-block;
  background: var(--primary);
  color: white !important;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  text-decoration: none !important;
  margin-top: 10px;
  box-shadow: 0 2px 8px rgba(30, 58, 138, 0.25);
  transition: background 0.2s ease;
}

.contact-email:hover {
  background: #172554;
}

/* Footer */
footer {
  background: white;
  border-top: 1px solid var(--border);
  padding: 32px 0;
  text-align: center;
  color: var(--text-light);
  font-size: 0.88rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer-links {
  display: flex;
  gap: 16px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--primary);
}

@media (max-width: 680px) {
  .card {
    padding: 24px 20px;
  }
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .lang-switcher {
    align-self: flex-end;
    margin-top: -40px;
  }
}
