/* =========================================================
   easysoftlab · Unified Artistic Design System
   Main site (JS-i18n) + OCR tool — both share this sheet.
   Palette inspired by factorycog.com (Indigo/Violet + Amber Gold),
   enhanced with glassmorphism, glow, animated gradients, blobs.
   ========================================================= */

:root {
  /* ---- Brand ---- */
  --primary: #4F46E5;
  --primary-2: #7C3AED;
  --primary-3: #4338CA;
  --primary-gradient: linear-gradient(135deg, #4F46E5 0%, #7C3AED 50%, #6366F1 100%);
  --primary-grad: linear-gradient(135deg, #4F46E5 0%, #7C3AED 50%, #6366F1 100%);
  --primary-light: #EEF2FF;
  --hero-grad: linear-gradient(135deg, #1E1B4B 0%, #312E81 30%, #4F46E5 70%, #6366F1 100%);
  --accent: #F59E0B;
  --accent-2: #EC4899;
  --cyan: #22D3EE;

  /* ---- Surfaces ---- */
  --bg: #f6f7fb;
  --bg-alt: #eef1f8;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-solid: #ffffff;

  /* ---- Text ---- */
  --text: #1a1a2e;
  --text-soft: #44445f;
  --muted: #8a8aa0;

  /* ---- Lines / glow ---- */
  --border: rgba(79, 70, 229, 0.16);
  --border-soft: rgba(148, 163, 184, 0.22);
  --glass-border: rgba(255, 255, 255, 0.65);

  --shadow-sm: 0 4px 14px rgba(31, 41, 55, 0.06);
  --shadow: 0 12px 34px rgba(31, 41, 55, 0.10);
  --shadow-lg: 0 24px 60px rgba(31, 41, 55, 0.16);
  --glow: 0 10px 30px rgba(124, 58, 237, 0.30);
  --glow-strong: 0 14px 44px rgba(124, 58, 237, 0.45);

  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 18px;
  --radius-xl: 26px;

  --font: "Inter", "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;
  --max-width: 1180px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* floating decorative blobs (subtle, behind content) */
body::before,
body::after {
  content: "";
  position: fixed;
  z-index: 0;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.30;
  pointer-events: none;
}
body::before {
  width: 420px; height: 420px;
  top: -160px; left: -120px;
  background: radial-gradient(circle at 30% 30%, #7C3AED, transparent 70%);
  animation: float1 18s ease-in-out infinite;
}
body::after {
  width: 480px; height: 480px;
  bottom: -200px; right: -160px;
  background: radial-gradient(circle at 70% 70%, #22D3EE, transparent 70%);
  animation: float2 21s ease-in-out infinite;
}
@keyframes float1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(60px, 50px); } }
@keyframes float2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-60px, -40px); } }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 22px; position: relative; z-index: 1; }

a { color: var(--primary); text-decoration: none; }
img { max-width: 100%; }

/* ===================== NAVBAR ===================== */
.navbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-soft);
  transition: var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow-sm); }
.navbar .container { display: flex; align-items: center; justify-content: flex-start; height: 72px; }
.navbar-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: var(--text); }
.logo-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--primary-gradient); color: #fff; font-weight: 800;
  box-shadow: var(--glow);
}
.navbar-links { display: flex; align-items: center; gap: 8px; }
.navbar-links a {
  padding: 8px 20px; border-radius: 50px;
  color: var(--text-soft); font-weight: 500; font-size: 15px;
  transition: all var(--transition);
}
.navbar-links a:hover, .navbar-links a.active {
  color: var(--primary); background: var(--primary-light);
}
.navbar-menu { display: flex; align-items: center; gap: 16px; margin-left: 24px; }
.navbar-legal { display: flex; align-items: center; gap: 8px; }
.navbar-legal a {
  padding: 8px 20px; border-radius: 50px;
  color: var(--text-soft); font-weight: 500; font-size: 15px;
  white-space: nowrap; transition: all var(--transition);
}
.navbar-legal a:hover, .navbar-legal a.active {
  color: var(--primary); background: var(--primary-light);
}

/* hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.hamburger span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--transition); }
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile menu */
.mobile-menu {
  position: fixed; top: 72px; left: 0; right: 0; z-index: 49;
  background: rgba(255,255,255,0.97); backdrop-filter: blur(12px);
  display: flex; flex-direction: column; padding: 12px 22px 22px;
  transform: translateY(-120%); transition: transform .35s ease; box-shadow: var(--shadow);
}
.mobile-menu.active { transform: translateY(0); }
.mobile-menu a { padding: 13px 4px; color: var(--text-soft); font-weight: 500; border-bottom: 1px solid var(--border-soft); }
.mobile-menu a.active { color: var(--primary); }

/* ===================== LANGUAGE SWITCHER (dropdown) ===================== */
.navbar-controls { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.lang-switch { position: relative; }
.lang-current {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--border); background: rgba(255,255,255,0.7);
  font-weight: 600; font-size: 13.5px; color: var(--text);
  backdrop-filter: blur(8px); transition: var(--transition); white-space: nowrap;
  font-family: inherit;
}
.lang-current:hover { border-color: var(--primary-2); color: var(--primary); box-shadow: var(--shadow-sm); }
.lang-current:focus-visible { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(124,58,237,0.18); }
.lang-current-code { letter-spacing: 0.3px; }
.lang-current-caret { transition: transform var(--transition); }
.lang-switch.open .lang-current { border-color: var(--primary-2); color: var(--primary); }
.lang-switch.open .lang-current-caret { transform: rotate(180deg); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 180px;
  background: rgba(255,255,255,0.96); backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border); border-radius: 14px; padding: 8px;
  box-shadow: var(--shadow-lg); display: none; z-index: 60;
}
.lang-switch.open .lang-menu { display: block; animation: fadeUp .25s ease; }
.lang-menu .lang-option {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px;
  color: var(--text-soft); font-size: 14px; transition: var(--transition); text-decoration: none;
}
.lang-menu .lang-option:hover, .lang-menu .lang-option.is-active {
  background: var(--primary-light); color: var(--primary-3);
}
.lang-menu .lang-option .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--border-soft); flex: 0 0 auto;
}
.lang-menu .lang-option.is-active .dot {
  background: var(--primary-2); box-shadow: 0 0 8px var(--primary-2);
}
@media (max-width: 1024px) {
  .navbar-controls .lang-switch { display: none; }
}

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: 999px; font-weight: 600; font-size: 14.5px;
  cursor: pointer; border: 1.5px solid transparent; transition: var(--transition); text-align: center;
}
.btn-primary { background: var(--primary-gradient); background-size: 180% 180%; color: #fff; box-shadow: var(--glow); animation: btnShift 6s ease infinite; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--glow-strong); }
@keyframes btnShift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.btn-lg { padding: 14px 30px; font-size: 15.5px; }
.btn-outline-white { background: rgba(255,255,255,0.10); color: #fff; border-color: rgba(255,255,255,0.6); backdrop-filter: blur(6px); }
.btn-outline-white:hover { background: #fff; color: var(--primary); transform: translateY(-2px); }
.btn-outline { background: #fff; color: var(--primary); border-color: var(--border); }
.btn-outline:hover { border-color: var(--primary-2); box-shadow: var(--shadow-sm); }

/* ===================== HERO / BANNER ===================== */
.banner, .page-hero, .hero {
  position: relative; color: #fff; overflow: hidden;
  background: var(--hero-grad); background-size: 220% 220%;
  animation: heroShift 14s ease infinite;
}
.banner { padding: 96px 0 104px; }
.page-hero { padding: 60px 0 52px; text-align: center; }
.hero { padding: 84px 0 104px; }
@keyframes heroShift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
.banner::before, .page-hero::before, .hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 18% 22%, rgba(255,255,255,0.18), transparent 42%),
    radial-gradient(circle at 82% 8%, rgba(236,72,153,0.28), transparent 38%),
    radial-gradient(circle at 60% 92%, rgba(34,211,238,0.20), transparent 40%);
}
.banner-content { position: relative; z-index: 1; max-width: 820px; }
.banner-badge, .badge {
  display: inline-block; padding: 7px 16px; margin-bottom: 20px;
  border: 1px solid rgba(255,255,255,0.45); border-radius: 999px;
  font-size: 13px; letter-spacing: .4px;
  background: rgba(255,255,255,0.10); backdrop-filter: blur(6px); box-shadow: 0 0 18px rgba(255,255,255,0.15);
}
.banner h1 { font-size: 46px; font-weight: 800; letter-spacing: -1px; line-height: 1.2; text-shadow: 0 6px 26px rgba(0,0,0,0.25); }
.banner h1 .banner-accent, .banner-accent {
  background: linear-gradient(135deg, #FBBF24, #F59E0B, #EC4899);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.banner p { margin: 18px 0 26px; font-size: 16.5px; color: rgba(255,255,255,0.92); }
.banner-buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.page-hero h1 { font-size: 38px; font-weight: 800; }

/* ===================== SECTION ===================== */
.section { position: relative; z-index: 1; padding: 52px 0; }
.section-compact { padding: 44px 0; }
.section-header { text-align: center; max-width: 720px; margin: 0 auto 28px; }
.page-sections { display: flex; flex-direction: column; gap: 28px; }
.page-section { max-width: 820px; margin: 0 auto; text-align: center; }
/* legal document (Terms / Privacy / Refund) — 模仿 factorycog 居中栏 + 正文左对齐 */
.legal-wrap { max-width: 860px; margin: 0 auto; line-height: 1.85; color: var(--text); }
.legal-wrap h2 { color: var(--primary); margin-top: 32px; font-size: 21px; font-weight: 700; }
.legal-wrap p { margin: 12px 0; color: var(--text-soft); line-height: 1.85; }
.section-label {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--primary-2); margin-bottom: 10px;
}
.section-header h2, .section h2 {
  font-size: 30px; font-weight: 800; margin-bottom: 12px;
  background: var(--primary-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; display: inline-block;
}
.section-header p { color: var(--text-soft); }

/* fade-up */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.fade-up.visible { opacity: 1; transform: none; }

/* ===================== ABOUT ===================== */
.about-intro { display: grid; grid-template-columns: 1.2fr 1fr; gap: 36px; align-items: start; }
.about-intro-text h2 { font-size: 28px; font-weight: 800; margin-bottom: 14px; }
.about-intro-text p { color: var(--text-soft); margin-bottom: 12px; }
.about-intro-img img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.culture-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 0; }
.culture-card {
  background: var(--surface); backdrop-filter: blur(12px); border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg); padding: 20px; transition: var(--transition);
}
.culture-card:hover { transform: translateY(-6px); box-shadow: var(--glow); }
.culture-icon { font-size: 34px; margin-bottom: 10px; }
.culture-card h3 { font-size: 17px; margin-bottom: 8px; }
.culture-card p { color: var(--text-soft); font-size: 14px; }

/* ===================== CONTACT ===================== */
.contact-content { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-info-item { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--border-soft); }
.contact-methods { display: flex; flex-direction: column; gap: 18px; max-width: 720px; margin: 0 auto; }
.contact-method {
  display: flex; align-items: flex-start; gap: 18px;
  background: var(--surface); backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border); border-radius: var(--radius-lg);
  padding: 22px 26px; transition: transform var(--transition);
}
.contact-method:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.contact-method-icon {
  flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary-light); display: flex; align-items: center; justify-content: center;
  font-size: 22px; line-height: 1;
}
.contact-method-content { flex: 1; min-width: 0; }
.contact-method h2 { font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 6px; letter-spacing: 0.2px; }
.contact-method-note { font-size: 12.5px; color: var(--muted); margin-bottom: 4px; }
.contact-method-body { color: var(--text); font-size: 15px; font-weight: 500; line-height: 1.7; }
.contact-method-value { color: var(--text); }
.contact-method-sub { color: var(--text-soft); font-size: 14px; font-weight: 400; }
.contact-hero-image {
  max-width: 764px; margin: 36px auto 0; padding: 0 22px;
}
.contact-hero-image img {
  width: 100%; height: 240px; object-fit: cover;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  display: block;
}
@media (max-width: 920px) { .contact-methods { max-width: 100%; } .contact-hero-image img { height: 180px; } }
.info-icon { font-size: 22px; }
.info-label { font-size: 13px; color: var(--muted); }
.info-value { font-weight: 600; }
.contact-city-img, .contact-phone-img { border-radius: var(--radius-lg); box-shadow: var(--shadow); margin-top: 16px; }
.contact-image-section { background: linear-gradient(135deg, #EEF2FF 0%, #F5F3FF 100%); }
.contact-bottom-image { max-width: 720px; margin: 0 auto; }
.contact-bottom-image img { width: 100%; height: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); display: block; }
.contact-form-wrap {
  background: var(--surface); backdrop-filter: blur(12px); border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow);
}
.form-input, .form-textarea {
  width: 100%; padding: 12px 14px; margin-bottom: 6px; border: 1.5px solid var(--border-soft);
  border-radius: 10px; font-size: 14.5px; font-family: inherit; background: rgba(255,255,255,0.9); color: var(--text);
}
.form-input:focus, .form-textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(124,58,237,0.15); }
.form-textarea { min-height: 130px; resize: vertical; }
.form-error { color: #ef4444; font-size: 12.5px; min-height: 16px; margin: -2px 0 8px; opacity: 0; transition: opacity .2s; }
.form-error.visible { opacity: 1; }
.form-input.error, .form-textarea.error { border-color: #ef4444; }

/* ===================== PRODUCTS ===================== */
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.products-divider { grid-column: 1 / -1; text-align: center; margin: 14px 0; }
.products-divider span {
  display: inline-block; padding: 6px 18px; border-radius: 999px;
  background: var(--primary-light); color: var(--primary-3); font-weight: 700; font-size: 13px;
}
.filter-btn {
  padding: 9px 18px; border-radius: 999px; border: 1.5px solid var(--border-soft);
  background: rgba(255,255,255,0.8); font-weight: 600; cursor: pointer; transition: var(--transition); color: var(--text-soft);
}
.filter-btn.active, .filter-btn:hover { background: var(--primary-gradient); color: #fff; border-color: transparent; box-shadow: var(--glow); }
.card {
  display: block; background: var(--surface); backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border); border-radius: var(--radius-lg); overflow: hidden;
  transition: var(--transition); color: var(--text);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--glow); border-color: rgba(124,58,237,0.4); }
.card-img-wrapper { overflow: hidden; aspect-ratio: 16/10; background: var(--bg-alt); }
.card-img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-img { transform: scale(1.05); }
.card-body { padding: 24px; }
.card-tag, .card-category {
  display: inline-block; font-size: 12px; font-weight: 700; color: var(--primary-2);
  background: var(--primary-light); padding: 3px 10px; border-radius: 999px; margin-bottom: 10px;
}
.card-title { font-size: 18px; font-weight: 600; margin-bottom: 8px; color: var(--text); }
.card-desc { color: var(--text-soft); font-size: 14px; line-height: 1.6; }
.card-features { list-style: none; margin: 12px 0 14px; }
.card-features li { font-size: 13px; color: var(--text-soft); padding-left: 20px; position: relative; margin-bottom: 6px; line-height: 1.5; }
.card-features li::before { content: "✓"; position: absolute; left: 0; color: var(--primary); font-weight: 700; }
.card-arrow { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; color: var(--primary); font-weight: 600; font-size: 13px; transition: var(--transition); }
.card-arrow::after { content: "→"; transition: var(--transition); }
.card:hover .card-arrow { color: var(--primary-3); }
.card:hover .card-arrow::after { transform: translateX(4px); }

/* ===================== PRODUCT DETAIL ===================== */
.product-detail-hero { padding: 40px 0; }
.breadcrumb { font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--primary); }
.breadcrumb span { margin: 0 8px; }
.product-detail-name { font-size: 32px; font-weight: 800; }
.product-tagline { color: var(--text-soft); margin: 8px 0 24px; }
.specs-table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--border-soft); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); }
.specs-table th { background: var(--primary-light); color: var(--primary-3); text-align: left; padding: 12px 16px; font-weight: 600; }
.specs-table td { padding: 12px 16px; border-top: 1px solid var(--border-soft); font-size: 14px; }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 20px; }
.feature-item { display: flex; gap: 14px; background: var(--surface); backdrop-filter: blur(10px); border: 1px solid var(--glass-border); border-radius: var(--radius); padding: 18px; }
.feature-icon { font-size: 26px; }
.feature-item h4 { font-size: 15.5px; margin-bottom: 4px; }
.feature-item p { font-size: 13.5px; color: var(--text-soft); }
.scenes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 20px; }
.scene-card { border: 1px solid var(--glass-border); border-radius: var(--radius); overflow: hidden; background: var(--surface); backdrop-filter: blur(10px); transition: var(--transition); }
.scene-card:hover { transform: translateY(-5px); box-shadow: var(--glow); }
.scene-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.scene-info { padding: 16px; }
.scene-info h4 { font-size: 15px; margin-bottom: 4px; }
.scene-info p { font-size: 13px; color: var(--text-soft); }

/* ===================== PRICING ===================== */
.pricing-wrap { max-width: 880px; margin: 0 auto; }
.pricing-wrap h1 { font-size: 30px; margin-bottom: 8px; }
.pricing-lead { color: var(--text-soft); margin-bottom: 24px; }
.pricing-table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--border-soft); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); }
.pricing-table th { background: var(--primary-light); color: var(--primary-3); text-align: left; padding: 12px 16px; font-weight: 600; }
.pricing-table td { padding: 14px 16px; border-top: 1px solid var(--border-soft); font-size: 15px; }
.pricing-table tr:hover td { background: #fafbfd; }
.pricing-table td:first-child { font-weight: 600; }
.pricing-table td:last-child { text-align: right; color: var(--primary); font-weight: 700; }
.pricing-note { margin-top: 28px; padding: 16px 18px; background: linear-gradient(135deg, #fff7e6, #ffe9c2); border-left: 4px solid var(--accent); border-radius: 8px; color: #5b4400; font-size: 14px; }
.pricing-note strong { color: #b35900; }

/* ===================== 404 ===================== */
.error-page { text-align: center; padding: 120px 20px; }
.error-page h1 { font-size: 90px; font-weight: 800; background: var(--primary-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ===================== PRODUCTS SHOWCASE (factorycog style) ===================== */
.app-hero { position: relative; text-align: center; }
.app-hero-content { position: relative; z-index: 1; max-width: 840px; margin: 0 auto; }
.app-hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; margin-bottom: 18px;
  border: 1px solid rgba(255,255,255,0.4); border-radius: 999px; background: rgba(255,255,255,0.10);
  backdrop-filter: blur(6px); font-size: 13px; box-shadow: 0 0 18px rgba(255,255,255,0.12); }
.badge-dot { width: 8px; height: 8px; border-radius: 50%; background: #FBBF24; box-shadow: 0 0 10px #FBBF24; }
.app-hero h1 { font-size: 46px; font-weight: 800; letter-spacing: -1px; line-height: 1.2; text-shadow: 0 6px 26px rgba(0,0,0,0.25); }
.app-hero h1 em { font-style: normal; background: linear-gradient(135deg, #FBBF24, #F59E0B, #EC4899); -webkit-background-clip: text; background-clip: text; color: transparent; }
.app-hero p { margin: 16px 0 26px; font-size: 17px; color: rgba(255,255,255,0.92); }
.app-hero-features { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.app-hero-features .feature-item { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px;
  border: 1px solid rgba(255,255,255,0.35); border-radius: 999px; background: rgba(255,255,255,0.08);
  backdrop-filter: blur(6px); box-shadow: none; }
.app-hero-features .feature-item:hover { transform: none; box-shadow: none; }
.app-hero-features .feature-icon { font-size: 18px; }
.app-hero-features .feature-name { font-size: 14px; color: #fff; }

.filter-bar { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 32px; }

.app-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 1080px) { .products-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px)  { .products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .products-grid { grid-template-columns: 1fr; } }

.related-tools { text-align: center; background: var(--surface); backdrop-filter: blur(12px); border: 1px solid var(--glass-border); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow); }
.related-tools h3 { font-size: 22px; margin-bottom: 8px; }
.related-tools p { color: var(--text-soft); margin-bottom: 18px; }

.cta-section { position: relative; z-index: 1; text-align: center; padding: 64px 0; margin-top: 10px;
  background: linear-gradient(135deg, #1E1B4B 0%, #312E81 60%, #4F46E5 100%); color: #fff; }
.cta-section h2 { font-size: 28px; font-weight: 800; margin-bottom: 10px; }
.cta-section p { color: rgba(255,255,255,0.85); margin-bottom: 22px; }
.btn-white { background: #fff; color: var(--primary-3); box-shadow: var(--shadow); }
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--glow); }

@media (max-width: 920px) { .app-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .app-grid { grid-template-columns: 1fr; } .app-hero h1 { font-size: 34px; } }

/* ===================== FOOTER ===================== */
.footer {
  position: relative; z-index: 1; margin-top: 0;
  border-top: none;
  background: linear-gradient(135deg, #1E1B4B 0%, #312E81 60%, #4F46E5 100%);
  padding: 44px 0 30px; color: rgba(255,255,255,0.85); font-size: 13.5px;
}
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.2fr; gap: 26px; }
.footer-brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 17px; color: #fff; margin-bottom: 12px; }
.footer-desc { color: rgba(255,255,255,0.7); line-height: 1.7; }
.footer h4 { color: #fff; font-size: 14px; margin-bottom: 12px; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 7px; }
.footer a { color: rgba(255,255,255,0.8); transition: var(--transition); }
.footer a:hover { color: #fff; }
.footer-divider { border: none; border-top: 1px solid rgba(255,255,255,0.15); margin: 24px 0 14px; }

/* ===================== TOAST ===================== */
.toast {
  position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 20px);
  background: var(--primary-gradient); color: #fff; padding: 12px 22px; border-radius: 999px;
  box-shadow: var(--glow-strong); opacity: 0; transition: all .3s ease; z-index: 200;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* =========================================================
   OCR TOOL (shared with /ocr/* pages)
   ========================================================= */
.tool-wrap { margin-top: -60px; position: relative; z-index: 2; }
.card.ocr-card { /* OCR card uses same glass card look */ }
.upload-zone {
  border: 2px dashed rgba(124,58,237,0.4); border-radius: var(--radius);
  padding: 40px 20px; text-align: center;
  background: linear-gradient(180deg, rgba(238,242,255,0.9), rgba(255,255,255,0.85)); transition: var(--transition);
}
.upload-zone:hover { border-color: var(--primary-2); background: linear-gradient(180deg, rgba(238,242,255,1), rgba(245,243,255,0.95)); box-shadow: var(--glow); }
.upload-zone .ico { font-size: 40px; }
.upload-zone .hint { font-weight: 600; margin-top: 8px; }
.upload-zone .fmt { color: var(--muted); font-size: 13.5px; margin-top: 6px; }
.upload-zone .status { display: none; margin-top: 14px; color: var(--primary); font-weight: 600; }
.upload-zone img { border-radius: var(--radius-sm); max-width: 100%; }

.opts-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 22px; margin-top: 22px; }
.field-label { font-weight: 600; font-size: 14px; margin-bottom: 10px; display: block; }
.engine-row { display: flex; gap: 12px; flex-wrap: wrap; }
.engine {
  flex: 1 1 200px; border: 1.5px solid var(--border-soft); border-radius: 12px; padding: 12px 14px;
  cursor: pointer; transition: var(--transition); display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,0.6);
}
.engine:hover { border-color: var(--primary-2); box-shadow: var(--shadow-sm); }
.engine input { accent-color: var(--primary); width: 16px; height: 16px; }
.engine strong { display: block; font-size: 14.5px; }
.engine small { color: var(--muted); font-size: 12.5px; }

select { width: 100%; padding: 11px 12px; border: 1.5px solid var(--border-soft); border-radius: 10px; font-size: 14px; color: var(--text); background: rgba(255,255,255,0.9); }
select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(124,58,237,0.15); }

.checks { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.check input { accent-color: var(--primary); width: 16px; height: 16px; }

.result-box {
  width: 100%; min-height: 150px; border: 1.5px solid var(--border-soft); border-radius: 12px;
  padding: 14px; font-size: 14px; color: var(--muted); background: rgba(255,255,255,0.75);
  backdrop-filter: blur(8px); resize: vertical;
}
.result-actions { display: flex; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.btn-sm { flex: 1; padding: 10px; border-radius: 10px; border: 1.5px solid var(--border-soft); background: rgba(255,255,255,0.85); font-weight: 600; cursor: pointer; transition: var(--transition); color: var(--text); }
.btn-sm:hover { border-color: var(--primary-2); color: var(--primary); transform: translateY(-1px); box-shadow: var(--shadow-sm); }

.docs { padding: 60px 0 44px; position: relative; z-index: 1; }
.docs h2 { font-size: 30px; font-weight: 800; margin-bottom: 10px; background: var(--primary-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; display: inline-block; }
.docs h3 { font-size: 20px; font-weight: 600; margin: 30px 0 12px; color: var(--primary-3); }
.docs p { color: var(--text-soft); }
.docs ol, .docs ul { padding-left: 22px; margin-top: 8px; }
.docs li { margin-bottom: 8px; }
.docs li b { color: var(--text); }
.note { background: linear-gradient(135deg, rgba(238,242,255,0.95), rgba(245,243,255,0.9)); border-left: 4px solid var(--primary-2); border-radius: 10px; padding: 14px 16px; margin-top: 14px; font-size: 13.5px; color: var(--text-soft); }

.lang-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin-top: 12px; }
.lang-item { display: flex; justify-content: space-between; align-items: center; border: 1px solid var(--border-soft); border-radius: 10px; padding: 9px 12px; font-size: 13.5px; background: rgba(255,255,255,0.7); backdrop-filter: blur(6px); transition: var(--transition); }
.lang-item:hover { border-color: var(--primary-2); background: rgba(238,242,255,0.9); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.lang-item code { background: rgba(124,58,237,0.12); color: var(--primary-3); padding: 2px 8px; border-radius: 6px; font-size: 12px; }

.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-top: 14px; }
.tool-card { border: 1px solid var(--glass-border); border-radius: var(--radius); padding: 18px; background: var(--surface); backdrop-filter: blur(12px); transition: var(--transition); }
.tool-card:hover { transform: translateY(-6px); box-shadow: var(--glow); border-color: rgba(124,58,237,0.4); }
.tool-card .t-ico { font-size: 28px; }
.tool-card h4 { font-size: 15.5px; margin: 10px 0 6px; }
.tool-card p { font-size: 13px; color: var(--muted); }

/* OCR footer switcher (in-page) */
.lang-switch > a {
  color: var(--primary); text-decoration: none; font-weight: 600; font-size: 13.5px;
  padding: 7px 16px; border-radius: 999px; border: 1px solid var(--border);
  background: rgba(255,255,255,0.7); backdrop-filter: blur(8px); transition: var(--transition);
}
.lang-switch > a:hover, .lang-switch > a.is-active { background: var(--primary-gradient); color: #fff; border-color: transparent; box-shadow: var(--glow); transform: translateY(-2px); }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 920px) {
  .about-intro, .contact-content { grid-template-columns: 1fr; }
  .culture-grid, .products-grid, .scenes-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .navbar-menu { display: none; }
  .hamburger { display: flex; }
  .banner h1, .hero h1 { font-size: 34px; }
  .banner, .hero { padding: 72px 0 84px; }
  .culture-grid, .products-grid, .scenes-grid, .footer-grid { grid-template-columns: 1fr; }
  .opts-grid { grid-template-columns: 1fr; }
  .docs h2, .section-header h2, .section h2 { font-size: 26px; }
}
