/* ==========================================================================
   一元机场 (yiyuan-jic.homes) - Distinct Ticket Design System
   ========================================================================== */

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

:root {
  --bg-oatmeal: #F6F1EA;
  --bg-ticket: #FFFFFF;
  --bg-card-subtle: #FAF6F0;
  
  --brand-red: #D92B27;
  --brand-red-dark: #B01E1B;
  --brand-red-light: #FDF2F2;
  --stamp-ink: #B81D1A;
  
  --text-dark: #1E1D1B;
  --text-muted: #5C5854;
  --text-light: #8C8680;
  --border-color: #E2DACF;
  --perforate-color: #C8BFAF;
  
  --font-primary: 'Noto Sans SC', 'Outfit', sans-serif;
  --font-mono: 'Space Mono', monospace;
  
  --shadow-sm: 0 4px 12px rgba(30, 29, 27, 0.05);
  --shadow-md: 0 10px 30px rgba(30, 29, 27, 0.08);
  --shadow-hover: 0 18px 40px rgba(30, 29, 27, 0.14);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-oatmeal);
  background-image: radial-gradient(var(--border-color) 0.8px, transparent 0.8px);
  background-size: 28px 28px;
  color: var(--text-dark);
  font-family: var(--font-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.paper-texture {
  position: relative;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* SVG Icon Helper */
.svg-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
  display: inline-block;
  vertical-align: middle;
}

/* Header Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 241, 234, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 2px dashed var(--perforate-color);
  padding: 16px 0;
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  font-size: 1.4rem;
  color: var(--brand-red);
  letter-spacing: -0.5px;
}

.brand-badge {
  background: var(--brand-red);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: 1px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--brand-red);
}

.nav-cta {
  background: var(--brand-red);
  color: #FFFFFF !important;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(217, 43, 39, 0.3);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-cta:hover {
  background: var(--brand-red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(217, 43, 39, 0.4);
}

/* Punch Ticket Component Styles */
.perforation-line {
  position: relative;
  height: 2px;
  border-top: 2px dashed var(--perforate-color);
  margin: 40px 0;
}

.perforation-line::before,
.perforation-line::after {
  content: "";
  position: absolute;
  top: -12px;
  width: 24px;
  height: 24px;
  background-color: var(--bg-oatmeal);
  border-radius: 50%;
}

.perforation-line::before { left: -36px; border-right: 2px solid var(--border-color); }
.perforation-line::after { right: -36px; border-left: 2px solid var(--border-color); }

.punch-hole {
  width: 20px;
  height: 20px;
  background: #E4DCD0;
  border-radius: 50%;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
  display: inline-block;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.punch-hole:hover {
  transform: scale(1.2);
}

.red-stamp {
  display: inline-block;
  border: 3px double var(--stamp-ink);
  color: var(--stamp-ink);
  font-family: var(--font-mono);
  font-weight: 900;
  text-transform: uppercase;
  padding: 6px 18px;
  letter-spacing: 1px;
  transform: rotate(-2deg);
  border-radius: 4px;
  background: rgba(217, 43, 39, 0.04);
}

.red-stamp.large {
  font-size: 1.2rem;
  padding: 10px 24px;
}

.ticket-barcode {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  letter-spacing: 3px;
  color: var(--text-light);
  user-select: none;
}

/* Hero Section Layout */
.hero-section {
  padding: 60px 0 30px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: stretch;
}

.hero-ticket-board {
  background: var(--bg-ticket);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow-md);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ticket-top-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px dashed var(--border-color);
}

.ticket-serial-badge {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 700;
}

.hero-title {
  font-size: 2.7rem;
  font-weight: 900;
  line-height: 1.25;
  color: var(--text-dark);
  margin-bottom: 18px;
  letter-spacing: -1px;
}

.hero-title span.highlight {
  color: var(--brand-red);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 30px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 30px;
}

.btn-primary {
  background: var(--brand-red);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 1.05rem;
  padding: 16px 36px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(217, 43, 39, 0.35);
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--brand-red-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(217, 43, 39, 0.45);
}

.btn-inverted {
  background: #FFFFFF !important;
  color: var(--brand-red) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
}

.btn-inverted:hover {
  background: #FAF6F0 !important;
  color: var(--brand-red-dark) !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25) !important;
}

.btn-secondary {
  background: transparent;
  color: var(--text-dark);
  font-weight: 700;
  font-size: 1rem;
  padding: 15px 28px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border-color);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: rgba(0,0,0,0.03);
  border-color: var(--text-muted);
}

.feature-pills {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.pill-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
}

.hero-dashboard-card {
  background: var(--bg-ticket);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-dashboard-img {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  display: block;
}

/* Section Common Header */
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 50px;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand-red);
  text-transform: uppercase;
  letter-spacing: 2px;
  display: inline-block;
  margin-bottom: 8px;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--text-dark);
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* Core Advantages Section (2x2 Staggered Grid) */
.advantages-section {
  padding: 60px 0;
}

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

.advantage-card {
  background: var(--bg-ticket);
  border: 1px solid var(--border-color);
  border-left: 5px solid var(--brand-red);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  gap: 20px;
  align-items: start;
}

.advantage-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.advantage-icon-box {
  width: 52px;
  height: 52px;
  background: var(--brand-red-light);
  color: var(--brand-red);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(217, 43, 39, 0.2);
}

.advantage-content h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.advantage-content p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Pricing Section Layout (Ticket Stub Notch Style) */
.pricing-section {
  padding: 60px 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: stretch;
}

.pricing-card {
  background: var(--bg-ticket);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.pricing-card.popular {
  border-color: var(--brand-red);
  background: var(--bg-card-subtle);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  right: 24px;
  background: var(--brand-red);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 4px 14px;
  border-radius: 50px;
  letter-spacing: 1px;
}

.pricing-header {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 2px dashed var(--border-color);
}

.pricing-name {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-top: 12px;
}

.price-currency {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--brand-red);
}

.price-amount {
  font-size: 3rem;
  font-weight: 900;
  color: var(--brand-red);
  line-height: 1;
}

.price-period {
  color: var(--text-light);
  font-weight: 700;
  font-size: 0.95rem;
}

.pricing-features {
  list-style: none;
  margin-bottom: 30px;
  flex-grow: 1;
}

.pricing-features li {
  padding: 10px 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

.pricing-features li .check-icon {
  color: #2E8B57;
  flex-shrink: 0;
}

/* Tutorial Section Layout */
.tutorial-section {
  padding: 60px 0;
}

.tutorial-wrapper {
  background: var(--bg-ticket);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.tutorial-tabs {
  display: flex;
  gap: 12px;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 16px;
  margin-bottom: 32px;
  overflow-x: auto;
}

.tab-btn {
  background: var(--bg-oatmeal);
  border: 1px solid var(--border-color);
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.tab-btn.active, .tab-btn:hover {
  background: var(--brand-red);
  color: #FFFFFF;
  border-color: var(--brand-red);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.step-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.step-item {
  display: flex;
  gap: 18px;
}

.step-num {
  width: 38px;
  height: 38px;
  background: var(--brand-red);
  color: #FFFFFF;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-mono);
}

.step-info h4 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 4px;
  color: var(--text-dark);
}

.step-info p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* Latency Ping Speed Test Widget */
.ping-widget {
  background: #1C1B1A;
  color: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 24px;
  font-family: var(--font-mono);
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.5);
  margin-top: 30px;
}

.ping-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  font-size: 0.85rem;
}

.ping-status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #4EED94;
}

.ping-dot {
  width: 8px;
  height: 8px;
  background: #4EED94;
  border-radius: 50%;
  box-shadow: 0 0 8px #4EED94;
}

.ping-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.ping-item {
  background: rgba(255,255,255,0.06);
  padding: 10px 14px;
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.ping-value {
  color: #4EED94;
  font-weight: 700;
}

/* FAQ Accordion (2-Column Grid) */
.faq-section {
  padding: 60px 0;
}

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

.faq-item {
  background: var(--bg-ticket);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease;
}

.faq-item.active {
  border-color: var(--brand-red);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 20px 24px;
  background: transparent;
  border: none;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.faq-icon {
  font-size: 0.9rem;
  transition: transform 0.3s ease;
  color: var(--brand-red);
  font-weight: 900;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 24px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 350px;
  padding: 0 24px 20px;
}

/* Articles Section Layout */
.articles-section {
  padding: 60px 0;
}

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

.article-card {
  background: var(--bg-ticket);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease;
}

.article-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-red);
  box-shadow: var(--shadow-hover);
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-light);
  font-family: var(--font-mono);
  margin-bottom: 12px;
}

.article-category {
  background: var(--brand-red-light);
  color: var(--brand-red);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
}

.article-card-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 12px;
  line-height: 1.45;
}

.article-excerpt {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.6;
}

.article-link {
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--brand-red);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.article-link:hover {
  text-decoration: underline;
}

/* Article Page Details */
.article-page {
  padding: 40px 0 80px;
}

.breadcrumb-nav {
  margin-bottom: 24px;
  font-size: 0.9rem;
  color: var(--text-light);
}

.breadcrumb-nav a {
  color: var(--text-muted);
  font-weight: 700;
}

.breadcrumb-nav a:hover {
  color: var(--brand-red);
}

.article-container {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}

.article-main {
  background: var(--bg-ticket);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow-md);
}

.article-header {
  border-bottom: 2px dashed var(--border-color);
  padding-bottom: 24px;
  margin-bottom: 32px;
}

.article-h1 {
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1.3;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.article-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-muted);
}

.article-content h2 {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--text-dark);
  margin: 36px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--brand-red-light);
}

.article-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 24px 0 12px;
}

.article-content p {
  margin-bottom: 20px;
}

.article-content ul, .article-content ol {
  margin: 0 0 24px 24px;
}

.article-content li {
  margin-bottom: 8px;
}

.article-callout {
  background: var(--bg-card-subtle);
  border-left: 4px solid var(--brand-red);
  padding: 20px 24px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 28px 0;
  font-size: 0.98rem;
}

.sidebar-sticky {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-card {
  background: var(--bg-ticket);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.sidebar-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px dashed var(--border-color);
}

.related-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.related-list li a {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-muted);
  line-height: 1.4;
  transition: color 0.2s ease;
}

.related-list li a:hover {
  color: var(--brand-red);
}

/* Footer & Legal Links */
.site-footer {
  background: #1C1B1A;
  color: #D6D2CC;
  padding: 60px 0 30px;
  border-top: 3px solid var(--brand-red);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand h3 {
  color: #FFFFFF;
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #A5A099;
}

.footer-col h4 {
  color: #FFFFFF;
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: #A5A099;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #8C8780;
  flex-wrap: wrap;
  gap: 16px;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
  .hero-grid, .advantages-grid, .pricing-grid, .faq-grid, .articles-grid, .tab-content.active, .article-container {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero-title {
    font-size: 2.1rem;
  }
}

@media (max-width: 600px) {
  .main-nav {
    display: none;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-ticket-board, .article-main, .tutorial-wrapper {
    padding: 24px 18px;
  }
  .hero-title {
    font-size: 1.75rem;
  }
  .btn-primary, .btn-secondary {
    width: 100%;
  }
}
