/* ===== SOGOU IME DOWNLOAD SITE - GLOBAL STYLES ===== */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700;900&family=Sora:wght@300;400;600;700&display=swap');

:root {
  --primary: #FF5E1A;
  --primary-dark: #0047cc;
  --primary-light: #e8f0ff;
  --accent: #FF5E1A;
  --accent2: #00C896;
  --text: #1a1a2e;
  --text-muted: #5a6478;
  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --bg-card: #ffffff;
  --border: #e4e8f0;
  --shadow: 0 4px 24px rgba(0,102,255,0.10);
  --shadow-lg: 0 12px 48px rgba(0,102,255,0.16);
  --radius: 14px;
  --radius-lg: 22px;
  --font-body: 'Noto Sans SC', sans-serif;
  --font-display: 'Sora', 'Noto Sans SC', sans-serif;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; display: block; }

/* ===== HEADER ===== */
#site-header {
  position: sticky;
  top: 0; z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  height: 64px;
  gap: 16px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.18rem;
  color: var(--text);
  flex-shrink: 0;
}
.logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, #0066FF 0%, #0047cc 100%);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 900; font-size: 1rem; letter-spacing: -1px;
}

nav.main-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
nav.main-nav a {
  padding: 8px 14px; border-radius: 8px;
  color: var(--text-muted); font-size: .92rem; font-weight: 500;
  transition: background .15s, color .15s;
}
nav.main-nav a:hover, nav.main-nav a.active {
  background: var(--primary-light); color: var(--primary);
}
.btn-dl-header {
  margin-left: 8px;
  background: var(--primary); color: #fff !important;
  padding: 9px 20px !important;
  border-radius: 8px !important;
  font-weight: 600 !important; font-size: .9rem !important;
  transition: background .15s, transform .1s !important;
}
.btn-dl-header:hover { background: var(--primary-dark) !important; transform: translateY(-1px); }

/* Hamburger */
.menu-toggle { display: none; cursor: pointer; padding: 6px; border: none; background: none; }
.menu-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--text); margin: 5px 0;
  transition: all .25s;
}
@media (max-width: 768px) {
  .menu-toggle { display: block; margin-left: auto; }
  nav.main-nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: stretch;
    padding: 12px 20px 20px; border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    gap: 2px;
  }
  nav.main-nav.open { display: flex; }
  .btn-dl-header { margin-left: 0; text-align: center; }
}

/* ===== FOOTER ===== */
#site-footer {
  background: #0d1a36;
  color: #a0aec0;
  margin-top: 80px;
}
.footer-top {
  max-width: 1200px; margin: 0 auto; padding: 60px 24px 40px;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
}
.footer-brand { display: flex; flex-direction: column; gap: 16px; }
.footer-logo {
  display: flex; align-items: center; gap: 10px;
  color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem;
}
.footer-logo .logo-icon { background: linear-gradient(135deg,#0066FF,#0047cc); }
.footer-desc { font-size: .88rem; line-height: 1.8; max-width: 260px; }
.footer-col h4 { color: #fff; font-size: .92rem; font-weight: 600; margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { color: #a0aec0; font-size: .88rem; transition: color .2s; }
.footer-col ul a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 24px;
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
}
.footer-bottom p { font-size: .82rem; }
.footer-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-tags span { font-size: .78rem; opacity: .5; }

@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-top { grid-template-columns: 1fr; }
}

/* ===== COMMON COMPONENTS ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.section { padding: 72px 0; }
.section-alt { background: var(--bg-soft); }

.section-header { text-align: center; margin-bottom: 52px; }
.section-header .eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--primary); background: var(--primary-light);
  padding: 4px 14px; border-radius: 100px; margin-bottom: 14px;
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; color: var(--text);
  line-height: 1.3; margin-bottom: 14px;
}
.section-header p { color: var(--text-muted); font-size: 1.02rem; max-width: 560px; margin: 0 auto; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: 10px;
  font-weight: 600; font-size: .95rem; cursor: pointer;
  transition: all .2s; border: none; text-decoration: none;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,102,255,0.25); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary-light); color: var(--primary); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #e04d0e; color: #fff; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,94,26,0.28); }
.btn-lg { padding: 16px 38px; font-size: 1.05rem; border-radius: 12px; }
.btn-xl { padding: 20px 48px; font-size: 1.12rem; border-radius: 14px; }

.card {
  background: var(--bg-card); border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 28px;
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--primary-light); color: var(--primary);
  font-size: .78rem; font-weight: 600; padding: 3px 10px; border-radius: 100px;
}
.badge-green { background: #e6faf3; color: #00a572; }
.badge-orange { background: #fff0e8; color: #e05a00; }

/* Breadcrumb */
.breadcrumb { padding: 14px 0; font-size: .88rem; color: var(--text-muted); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { margin: 0 6px; }

/* Page Hero (sub pages) */
.page-hero {
  background: linear-gradient(135deg, #0a1628 0%, #0d2154 100%);
  padding: 52px 0 48px;
  color: black;
}
.page-hero h1 {
  font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700; line-height: 1.25; margin-bottom: 12px;
}
.page-hero p { color: rgba(255,255,255,.75); font-size: 1rem; max-width: 580px; }

/* Star Rating */
.stars { display: flex; gap: 3px; }
.stars svg { width: 16px; height: 16px; fill: #f5a623; }

/* Table of Contents */
.toc {
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 24px; margin-bottom: 32px;
}
.toc h3 { font-size: .95rem; font-weight: 700; margin-bottom: 12px; color: var(--text); }
.toc ol { padding-left: 18px; }
.toc li { font-size: .9rem; margin-bottom: 6px; }

/* Responsive Table */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th { background: var(--bg-soft); color: var(--text); font-weight: 600; text-align: left; padding: 12px 16px; border-bottom: 2px 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: var(--bg-soft); }

.check { color: var(--accent2); font-size: 1.1rem; }
.cross { color: #e53e3e; }

/* Version Tag */
.version-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(90deg,#0066FF22,#0066FF11);
  border: 1px solid #0066FF33; border-radius: 100px;
  font-size: .8rem; font-weight: 600; color: var(--primary); padding: 4px 12px;
}

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .grid-3 { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* Scroll animation */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity .5s ease, transform .5s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
