/* ============================================================
   SinoConect – Global Design System
   ============================================================ */

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

/* ── Design Tokens ── */
:root {
  /* Colors */
  --primary:        #0EA5E9; /* Sky Blue */
  --primary-light:  #38BDF8;
  --primary-dark:   #0284C7;
  --gold:           #3B82F6; /* Professional Blue (Replacing Gold for consistency) */
  --gold-light:     #60A5FA;
  --gold-dark:      #2563EB;
  --dark:           #0F172A; /* Slate 900 for a more professional dark background */
  --dark-2:         #1E293B; /* Slate 800 */
  --surface:        #1E293B; /* Slate 800 */
  --surface-2:      #334155; /* Slate 700 */
  --surface-3:      #475569; /* Slate 600 */
  --border:         rgba(255,255,255,0.08);
  --border-gold:    rgba(59, 130, 246, 0.3);
  --text:           #F8FAFC;
  --text-muted:     #94A3B8;
  --text-dim:       #64748B;
  --white:          #FFFFFF;
  --success:        #10B981;
  --info:           #0EA5E9;

  /* Gradients */
  --grad-primary:   linear-gradient(135deg, #0EA5E9 0%, #38BDF8 100%);
  --grad-gold:      linear-gradient(135deg, #2563EB 0%, #60A5FA 100%);
  --grad-hero:      linear-gradient(135deg, #0F172A 0%, #1E293B 50%, #0F172A 100%);
  --grad-dark:      linear-gradient(180deg, #0F172A 0%, #1E293B 100%);
  --grad-card:      linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
  --grad-red-glow:  radial-gradient(ellipse at center, rgba(14, 165, 233, 0.15) 0%, transparent 70%);
  --grad-gold-glow: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.1) 0%, transparent 70%);

  /* Shadows */
  --shadow-sm:   0 4px 12px rgba(0,0,0,0.15);
  --shadow-md:   0 10px 30px rgba(0,0,0,0.25);
  --shadow-lg:   0 20px 50px -10px rgba(0,0,0,0.4);
  --shadow-red:  0 8px 32px rgba(14, 165, 233, 0.3);
  --shadow-gold: 0 8px 32px rgba(59, 130, 246, 0.25);
  --glow-red:    0 0 40px rgba(14, 165, 233, 0.4);
  --glow-gold:   0 0 40px rgba(59, 130, 246, 0.3);

  /* Spacing */
  --space-xs:   4px;
  --space-sm:   8px;
  --space-md:   16px;
  --space-lg:   24px;
  --space-xl:   40px;
  --space-2xl:  64px;
  --space-3xl:  96px;
  --space-4xl:  128px;

  /* Border Radius */
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  32px;
  --radius-full: 9999px;

  /* Transitions */
  --transition:       all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast:  all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow:  all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bouncy: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);

  /* Typography */
  --font-base:    'Inter', sans-serif;
  --font-cn:      'Noto Sans SC', sans-serif;
  --fs-xs:        0.75rem;
  --fs-sm:        0.875rem;
  --fs-base:      1rem;
  --fs-md:        1.125rem;
  --fs-lg:        1.25rem;
  --fs-xl:        1.5rem;
  --fs-2xl:       2rem;
  --fs-3xl:       2.5rem;
  --fs-4xl:       3.5rem;
  --fs-5xl:       5rem;

  /* Layout */
  --container-max: 1280px;
  --nav-height:    72px;
}

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

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

body {
  font-family: var(--font-base);
  background-color: var(--dark);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--font-base); }
input, textarea, select { font-family: var(--font-base); }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark-2); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--primary-light); }

/* ── Container ── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

@media (max-width: 768px) {
  .container { padding: 0 var(--space-md); }
}

/* ── Section ── */
.section { padding: var(--space-3xl) 0; }
.section-sm { padding: var(--space-2xl) 0; }
.section-lg { padding: var(--space-4xl) 0; }

@media (max-width: 768px) {
  .section { padding: var(--space-xl) 0; }
  .section-sm { padding: var(--space-lg) 0; }
  .section-lg { padding: var(--space-2xl) 0; }
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
  line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
h5 { font-size: 1.1rem; font-weight: 600; }
h6 { font-size: 1rem; font-weight: 600; }

p { line-height: 1.7; color: var(--text-muted); }
.text-light { color: var(--text); }
.text-muted { color: var(--text-muted); }
.text-gold  { color: var(--gold); }
.text-red   { color: var(--primary); }
.text-white { color: var(--white); }
.text-center { text-align: center; }

/* ── Section Header ── */
.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-header .eyebrow {
  display: inline-block;
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-md);
  position: relative;
}

.section-header .eyebrow::before,
.section-header .eyebrow::after {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--gold);
  vertical-align: middle;
  margin: 0 var(--space-sm);
  opacity: 0.7;
}

.section-header h2 {
  color: var(--white);
  margin-bottom: var(--space-md);
}

.section-header h2 span {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-header p {
  max-width: 640px;
  margin: 0 auto;
  font-size: var(--fs-md);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-size: var(--fs-base);
  font-weight: 600;
  transition: var(--transition-bouncy);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  opacity: 0;
  transition: var(--transition);
}

.btn:hover::after { opacity: 1; }

.btn-primary {
  background: var(--grad-primary);
  color: var(--white);
  box-shadow: var(--shadow-red);
}

.btn-primary:hover {
  transform: scale(1.02) translateY(-2px);
  box-shadow: 0 12px 40px rgba(14, 165, 233, 0.3);
}

.btn-gold {
  background: var(--grad-gold);
  color: var(--dark);
  box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
  transform: scale(1.02) translateY(-2px);
  box-shadow: 0 12px 40px rgba(59, 130, 246, 0.3);
}

.btn-outline {
  border: 2px solid var(--border);
  color: var(--text);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--white);
  transform: scale(1.02) translateY(-2px);
}

.btn-outline-gold {
  border: 2px solid var(--gold);
  color: var(--gold);
  background: transparent;
}

.btn-outline-gold:hover {
  background: var(--gold);
  color: var(--dark);
  transform: scale(1.02) translateY(-2px);
}

.btn-sm {
  padding: 10px 24px;
  font-size: var(--fs-sm);
}

.btn-lg {
  padding: 18px 48px;
  font-size: var(--fs-md);
}

.btn-xl {
  padding: 20px 56px;
  font-size: var(--fs-lg);
  font-weight: 700;
}

@media (max-width: 640px) {
  .btn-xl, .btn-lg {
    width: 100%;
    justify-content: center;
    padding: 16px 24px;
    font-size: 1rem;
    white-space: normal;
    height: auto;
  }
}

/* ── Badge ── */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge-red   { background: rgba(192,57,43,0.2); color: var(--primary-light); border: 1px solid rgba(192,57,43,0.3); }
.badge-gold  { background: rgba(240,165,0,0.15); color: var(--gold); border: 1px solid rgba(240,165,0,0.3); }
.badge-green { background: rgba(39,174,96,0.15); color: #27AE60; border: 1px solid rgba(39,174,96,0.3); }

/* ── Cards ── */
.card {
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition-bouncy);
}

.card:hover {
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.card-glass {
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  transition: var(--transition-bouncy);
}

.card-glow-red:hover {
  box-shadow: var(--glow-red), var(--shadow-lg);
  border-color: rgba(14, 165, 233, 0.3);
}

.card-glow-gold:hover {
  box-shadow: var(--glow-gold), var(--shadow-lg);
  border-color: rgba(59, 130, 246, 0.3);
}

/* ── Grid ── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-xl); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-xl); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-xl); }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ── Flex utilities ── */
.flex        { display: flex; flex-wrap: wrap; }
.flex-center { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; }
.flex-between{ display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.flex-wrap   { flex-wrap: wrap; }
.gap-sm      { gap: var(--space-sm); }
.gap-md      { gap: var(--space-md); }
.gap-lg      { gap: var(--space-lg); }
.gap-xl      { gap: var(--space-xl); }

/* ── Form Elements ── */
.form-group { margin-bottom: var(--space-lg); }
.form-group label { display: block; margin-bottom: var(--space-sm); font-size: var(--fs-sm); font-weight: 500; color: var(--text); }
.form-group .required { color: var(--primary-light); }

.form-control {
  width: 100%;
  padding: 14px 18px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  font-size: var(--fs-base);
  transition: var(--transition);
  outline: none;
}

.form-control:focus {
  border-color: var(--primary);
  background: var(--surface-3);
  box-shadow: 0 0 0 3px rgba(192,57,43,0.15);
}

.form-control::placeholder { color: var(--text-dim); }

select.form-control option { background: var(--surface-2); }

textarea.form-control { resize: vertical; min-height: 120px; }

/* ── Dividers ── */
.divider {
  height: 1px;
  background: var(--border);
  margin: var(--space-2xl) 0;
}

.divider-gold {
  height: 2px;
  width: 64px;
  background: var(--grad-gold);
  margin: var(--space-md) auto;
  border-radius: var(--radius-full);
}

/* ── Page Hero ── */
.page-hero {
  min-height: 400px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: calc(var(--nav-height) + 48px) 0 64px;
  background: var(--grad-hero);
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-red-glow);
  pointer-events: none;
}

.page-hero-content { position: relative; z-index: 1; }

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--white);
  margin-bottom: var(--space-md);
}

.page-hero h1 span {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-hero p {
  font-size: var(--fs-lg);
  max-width: 640px;
}

/* ── Breadcrumb ── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.breadcrumb a:hover { color: var(--gold); }
.breadcrumb-sep { color: var(--text-dim); }

/* ── Icon Box ── */
.icon-box {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
}

.icon-box-red  { background: rgba(192,57,43,0.15); color: var(--primary-light); }
.icon-box-gold { background: rgba(240,165,0,0.12); color: var(--gold); }
.icon-box-sm   { width: 48px; height: 48px; font-size: 22px; }
.icon-box-lg   { width: 80px; height: 80px; font-size: 36px; border-radius: var(--radius-lg); }

/* ── Stat items ── */
.stat-number {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-top: var(--space-xs);
}

/* ── Tag list ── */
.tag-list { display: flex; flex-wrap: wrap; gap: var(--space-sm); }

.tag {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: var(--fs-sm);
  font-weight: 500;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

/* ── Check list ── */
.check-list { display: flex; flex-direction: column; gap: var(--space-md); }

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  color: var(--text);
  line-height: 1.5;
}

.check-list li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ── Cross list (exclusions) ── */
.cross-list { display: flex; flex-direction: column; gap: var(--space-md); }

.cross-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  color: var(--text-muted);
  line-height: 1.5;
}

.cross-list li::before {
  content: '\f00d';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: var(--text-dim);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ── Accordion ── */
.accordion-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: var(--space-md);
  transition: var(--transition);
}

.accordion-item.active {
  border-color: rgba(192,57,43,0.3);
}

.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) var(--space-xl);
  cursor: pointer;
  background: var(--surface);
  user-select: none;
}

.accordion-header h4 {
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--text);
}

.accordion-icon {
  color: var(--gold);
  transition: var(--transition);
  flex-shrink: 0;
}

.accordion-item.active .accordion-icon {
  transform: rotate(45deg);
  color: var(--primary-light);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-body-inner {
  padding: 0 var(--space-xl) var(--space-lg);
  background: var(--surface-2);
}

.accordion-item.active .accordion-body {
  max-height: 600px;
}

/* ── Progress bar ── */
.progress-bar-wrap {
  background: var(--surface-2);
  border-radius: var(--radius-full);
  height: 6px;
  overflow: hidden;
  margin-top: var(--space-sm);
}

.progress-bar {
  height: 100%;
  background: var(--grad-primary);
  border-radius: var(--radius-full);
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Stars ── */
.stars { color: var(--gold); letter-spacing: 2px; }

/* ── Tabs ── */
.tabs { display: flex; gap: var(--space-sm); flex-wrap: wrap; margin-bottom: var(--space-xl); }

.tab-btn {
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-size: var(--fs-sm);
  font-weight: 600;
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: transparent;
  transition: var(--transition);
}

.tab-btn.active, .tab-btn:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.tab-content { display: none; }
.tab-content.active { display: block; }

/* ── Utility ── */
.hidden       { display: none !important; }
.sr-only      { position: absolute; width: 1px; height: 1px; clip: rect(0,0,0,0); overflow: hidden; }
.rounded      { border-radius: var(--radius-md); }
.rounded-lg   { border-radius: var(--radius-lg); }
.rounded-full { border-radius: var(--radius-full); }
.overflow-hidden { overflow: hidden; }
.relative     { position: relative; }
.w-full       { width: 100%; }

.mt-4 { margin-top: var(--space-md); }
.mb-4 { margin-bottom: var(--space-md); }

/* ── Google Translate Overrides (Prevent Stacking & Popups) ── */
iframe.goog-te-banner-frame {
  display: none !important;
}
.goog-te-banner-frame {
  display: none !important;
}
body {
  top: 0px !important; 
  position: relative !important;
}
html {
  top: 0px !important;
}
#goog-gt-tt, .goog-te-balloon-frame {
  display: none !important;
}
.goog-tooltip, .goog-tooltip:hover {
  display: none !important;
}
.goog-text-highlight {
  background-color: transparent !important;
  border: none !important; 
  box-shadow: none !important;
}
font {
  background: transparent !important;
}

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.highlight-box {
  background: linear-gradient(135deg, rgba(192,57,43,0.08) 0%, rgba(240,165,0,0.05) 100%);
  border: 1px solid rgba(192,57,43,0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}

/* ============================================================
   Google Translate Overrides
   ============================================================ */
.skiptranslate, .goog-te-banner-frame {
  display: none !important;
  visibility: hidden !important;
}
body {
  top: 0px !important;
  position: static !important;
}
#google_translate_element {
  display: none !important;
}
.goog-tooltip {
  display: none !important;
}
.goog-tooltip:hover {
  display: none !important;
}
.goog-text-highlight {
  background-color: transparent !important;
  border: none !important; 
  box-shadow: none !important;
}