/* =============================================
   新西兰平安华社 / NZSAFE Website Styles
   Version 1.0 | 2024
   Colors: Navy #1a2e5a | Gold #c8a84b
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --navy:       #1a2e5a;
  --navy-dark:  #0f1d3a;
  --navy-mid:   #243f7a;
  --gold:       #c8a84b;
  --gold-light: #e8d5a3;
  --gold-pale:  #faf5e8;
  --white:      #ffffff;
  --ivory:      #f8f7f3;
  --light-gray: #f0efea;
  --border:     #e4e2da;
  --text:       #2c2c2c;
  --text-mid:   #4a4a4a;
  --text-light: #767676;
  --shadow:     0 2px 12px rgba(0,0,0,0.08);
  --shadow-md:  0 4px 24px rgba(0,0,0,0.12);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans SC', 'Inter', 'Microsoft YaHei', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.75;
  font-size: 16px;
}

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

a { color: var(--navy); text-decoration: none; }

/* =============================================
   HEADER
   ============================================= */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 18px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.logo-badge {
  width: 52px;
  height: 52px;
  background: var(--navy);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-badge span {
  color: var(--gold);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 1.2;
  text-align: center;
}

.logo-text .org-cn {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 1.5px;
  line-height: 1.3;
}

.logo-text .org-en {
  font-size: 0.72rem;
  color: var(--text-light);
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.3px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.reg-badge {
  font-size: 0.75rem;
  color: var(--text-light);
  font-family: 'Inter', sans-serif;
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 20px;
}

/* =============================================
   NAVIGATION
   ============================================= */
.site-nav {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 0;
}

.nav-menu li a {
  display: block;
  padding: 15px 18px;
  color: rgba(255,255,255,0.88);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: color 0.2s;
  position: relative;
}

.nav-menu li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 18px;
  right: 18px;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.2s;
}

.nav-menu li a:hover,
.nav-menu li a.active {
  color: var(--gold);
}

.nav-menu li a.active::after,
.nav-menu li a:hover::after {
  transform: scaleX(1);
}

.lang-switch {
  flex-shrink: 0;
}

.lang-switch a {
  color: var(--gold);
  font-size: 0.82rem;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  padding: 6px 14px;
  border: 1px solid rgba(200,168,75,0.5);
  border-radius: 4px;
  letter-spacing: 0.5px;
  transition: all 0.2s;
}

.lang-switch a:hover {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}

/* =============================================
   HERO BANNER (Home page)
   ============================================= */
.hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, var(--navy-mid) 100%);
  padding: 96px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      45deg,
      transparent, transparent 80px,
      rgba(200,168,75,0.04) 80px,
      rgba(200,168,75,0.04) 81px
    ),
    repeating-linear-gradient(
      -45deg,
      transparent, transparent 80px,
      rgba(255,255,255,0.02) 80px,
      rgba(255,255,255,0.02) 81px
    );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
}

.hero-label {
  display: inline-block;
  background: rgba(200,168,75,0.15);
  border: 1px solid rgba(200,168,75,0.4);
  color: var(--gold-light);
  font-size: 0.78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 20px;
  margin-bottom: 24px;
  font-family: 'Inter', sans-serif;
}

.hero h1 {
  font-size: 3.2rem;
  color: var(--white);
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: 2px;
  line-height: 1.25;
}

.hero h2 {
  font-size: 1.25rem;
  color: var(--gold);
  font-weight: 400;
  margin-bottom: 28px;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.5px;
}

.hero-divider {
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 0 auto 28px;
  border-radius: 2px;
}

.hero-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.82);
  max-width: 680px;
  margin: 0 auto 40px;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 5px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.2s;
  cursor: pointer;
  letter-spacing: 0.3px;
}

.btn-gold {
  background: var(--gold);
  color: var(--navy-dark);
}

.btn-gold:hover {
  background: #b8972f;
  color: var(--navy-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(200,168,75,0.3);
}

.btn-ghost {
  background: transparent;
  color: rgba(255,255,255,0.9);
  border: 1.5px solid rgba(255,255,255,0.4);
}

.btn-ghost:hover {
  border-color: rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.08);
  color: white;
}

/* =============================================
   PAGE HEADER (inner pages)
   ============================================= */
.page-header {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  padding: 56px 48px;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    45deg, transparent, transparent 80px,
    rgba(200,168,75,0.04) 80px, rgba(200,168,75,0.04) 81px
  );
}

.page-header-content {
  position: relative;
  z-index: 1;
  max-width: 1104px;
  margin: 0 auto;
}

.page-header .breadcrumb {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 12px;
  font-family: 'Inter', sans-serif;
}

.page-header .breadcrumb a {
  color: rgba(255,255,255,0.5);
}

.page-header .breadcrumb span {
  margin: 0 6px;
}

.page-header h1 {
  font-size: 2.4rem;
  color: var(--white);
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 1.25;
  margin-bottom: 10px;
}

.page-header .page-subtitle {
  font-size: 1rem;
  color: var(--gold);
  font-family: 'Inter', sans-serif;
}

/* =============================================
   MAIN CONTENT WRAPPER
   ============================================= */
.main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 48px;
}

/* =============================================
   SECTION TITLES
   ============================================= */
.section {
  margin-bottom: 64px;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  margin-bottom: 10px;
  font-family: 'Inter', sans-serif;
}

.section-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: 0.5px;
  line-height: 1.3;
  margin-bottom: 20px;
}

.section-title-en {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 20px;
  font-family: 'Inter', sans-serif;
}

.section-divider {
  width: 48px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin-bottom: 28px;
}

/* =============================================
   CARDS GRID
   ============================================= */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.cards-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.card {
  background: var(--ivory);
  border: 1px solid var(--border);
  border-top: 4px solid var(--gold);
  border-radius: 8px;
  padding: 28px 26px;
  transition: box-shadow 0.2s;
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card-num {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
  font-family: 'Inter', sans-serif;
}

.card-icon {
  font-size: 1.8rem;
  margin-bottom: 14px;
  line-height: 1;
}

.card h3 {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.4;
}

.card p {
  font-size: 0.92rem;
  color: var(--text-mid);
  line-height: 1.75;
}

/* =============================================
   LIST STYLES
   ============================================= */
.content-prose {
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.85;
  max-width: 760px;
}

.content-prose p {
  margin-bottom: 16px;
}

.content-prose strong {
  color: var(--text);
  font-weight: 700;
}

.bullet-list {
  list-style: none;
  margin: 16px 0;
}

.bullet-list li {
  padding: 8px 0 8px 24px;
  position: relative;
  font-size: 0.96rem;
  color: var(--text-mid);
  line-height: 1.7;
  border-bottom: 1px solid var(--border);
}

.bullet-list li:last-child {
  border-bottom: none;
}

.bullet-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 17px;
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
}

/* =============================================
   INFO BOXES
   ============================================= */
.info-box {
  background: #eef3fa;
  border-left: 4px solid var(--navy);
  border-radius: 0 6px 6px 0;
  padding: 20px 24px;
  margin: 24px 0;
}

.info-box p {
  font-size: 0.94rem;
  color: var(--navy);
  line-height: 1.75;
}

.notice-box {
  background: var(--gold-pale);
  border: 1px solid #ddc57a;
  border-left: 4px solid var(--gold);
  border-radius: 0 6px 6px 0;
  padding: 20px 24px;
  margin: 24px 0;
}

.notice-box strong {
  display: block;
  color: var(--navy);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.notice-box p {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.75;
}

.success-box {
  background: #edf7f0;
  border-left: 4px solid #2d9a5f;
  border-radius: 0 6px 6px 0;
  padding: 20px 24px;
  margin: 24px 0;
}

.success-box p {
  font-size: 0.94rem;
  color: #1a5e3a;
  line-height: 1.75;
}

/* =============================================
   REGISTRATION TABLE
   ============================================= */
.reg-table {
  width: 100%;
  max-width: 620px;
  border-collapse: collapse;
  margin-top: 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.reg-table th {
  background: var(--navy);
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 12px 20px;
  text-align: left;
  letter-spacing: 0.5px;
}

.reg-table td {
  padding: 12px 20px;
  font-size: 0.92rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

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

.reg-table tr:nth-child(even) td {
  background: var(--ivory);
}

.reg-table td:first-child {
  color: var(--text-light);
  font-weight: 500;
  width: 200px;
}

.reg-table td:last-child {
  color: var(--text);
  font-weight: 500;
}

/* =============================================
   TIMELINE / YEAR PLAN
   ============================================= */
.timeline {
  position: relative;
  margin-top: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 32px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  display: flex;
  gap: 28px;
  margin-bottom: 36px;
  position: relative;
}

.timeline-marker {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  background: var(--navy);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1;
  box-shadow: 0 0 0 4px var(--white), 0 0 0 6px var(--border);
}

.timeline-marker .year-label {
  font-size: 0.58rem;
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: 'Inter', sans-serif;
}

.timeline-marker .year-num {
  font-size: 1rem;
  color: var(--gold);
  font-weight: 800;
}

.timeline-content {
  background: var(--ivory);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: 0 8px 8px 0;
  padding: 22px 24px;
  flex: 1;
}

.timeline-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.timeline-content ul {
  list-style: none;
}

.timeline-content ul li {
  font-size: 0.92rem;
  color: var(--text-mid);
  padding: 4px 0 4px 20px;
  position: relative;
  line-height: 1.65;
}

.timeline-content ul li::before {
  content: '›';
  position: absolute;
  left: 4px;
  color: var(--gold);
  font-weight: 700;
}

/* =============================================
   CONTACT
   ============================================= */
.contact-block {
  background: var(--ivory);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 36px;
  max-width: 640px;
}

.contact-row {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}

.contact-row:last-child {
  border-bottom: none;
}

.contact-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-light);
  width: 130px;
  flex-shrink: 0;
  padding-top: 2px;
}

.contact-value {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.65;
}

.contact-value a {
  color: var(--navy);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* =============================================
   SHARE CONTENT SECTION (Home)
   ============================================= */
.share-section {
  background: var(--navy);
  padding: 64px 48px;
}

.share-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.share-section .section-label {
  color: var(--gold-light);
}

.share-section .section-title {
  color: var(--white);
  margin-bottom: 12px;
}

.share-subtitle {
  color: rgba(255,255,255,0.65);
  font-size: 0.95rem;
  margin-bottom: 40px;
  font-family: 'Inter', sans-serif;
}

.share-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.share-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-top: 3px solid var(--gold);
  border-radius: 8px;
  padding: 28px 22px;
}

.share-card .card-icon {
  font-size: 2rem;
  margin-bottom: 14px;
}

.share-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
  line-height: 1.4;
}

.share-card p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
}

/* =============================================
   CTA SECTION
   ============================================= */
.cta-section {
  background: var(--ivory);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 56px 48px;
  text-align: center;
}

.cta-inner {
  max-width: 700px;
  margin: 0 auto;
}

.cta-inner h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 14px;
}

.cta-inner p {
  color: var(--text-mid);
  font-size: 0.96rem;
  margin-bottom: 28px;
  line-height: 1.75;
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
}

.btn-navy:hover {
  background: var(--navy-mid);
  transform: translateY(-1px);
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.75);
  padding: 56px 48px 28px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 24px;
}

.footer-brand .brand-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.footer-brand .brand-en {
  font-size: 0.78rem;
  color: var(--gold);
  font-family: 'Inter', sans-serif;
  margin-bottom: 16px;
}

.footer-brand .footer-reg {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 4px;
}

.footer-links {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.82rem;
  transition: color 0.2s;
}

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

.footer-disclaimer strong {
  display: block;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.footer-disclaimer p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.75;
  margin-bottom: 12px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.77rem;
  color: rgba(255,255,255,0.3);
  font-family: 'Inter', sans-serif;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bottom a {
  color: rgba(255,255,255,0.4);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .site-header {
    padding: 14px 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .reg-badge { display: none; }
  .site-nav { position: relative; }
  .nav-inner { padding: 0 20px; flex-direction: column; align-items: flex-start; gap: 0; }
  .nav-menu { flex-wrap: wrap; }
  .nav-menu li a { padding: 10px 12px; font-size: 0.88rem; }
  .lang-switch { padding: 10px 0; }
  .hero { padding: 60px 24px; }
  .hero h1 { font-size: 2.2rem; }
  .hero h2 { font-size: 1rem; }
  .hero-desc { font-size: 0.96rem; }
  .page-header { padding: 40px 24px; }
  .page-header h1 { font-size: 1.8rem; }
  .main { padding: 40px 24px; }
  .share-section { padding: 48px 24px; }
  .cta-section { padding: 40px 24px; }
  .site-footer { padding: 40px 24px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .cards-grid { grid-template-columns: 1fr; }
  .cards-grid-2 { grid-template-columns: 1fr; }
  .timeline::before { left: 28px; }
  .timeline-marker { width: 56px; height: 56px; }
  .contact-block { padding: 24px; }
  .contact-label { width: 100px; }
}

@media (max-width: 600px) {
  .hero h1 { font-size: 1.8rem; }
  .section-title { font-size: 1.35rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .timeline-item { gap: 16px; }
}
