:root {
  --bento-sky: #0ea5e9;
  --bento-rose: #f43f5e;
  --bento-bg: #f1f5f9;
  --bento-card: #ffffff;
  --bento-border: #e2e8f0;
  --bento-text: #0f172a;
  --bento-muted: #64748b;
  --bento-radius: 20px;
  --bento-footer: #0f172a;
  --bento-grad: linear-gradient(135deg, #0ea5e9 0%, #f43f5e 100%);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bento-bg);
  color: var(--bento-text);
  line-height: 1.6;
  font-size: 16px;
}

a { color: var(--bento-sky); text-decoration: none; }
a:hover { color: #0284c7; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header.bento-header {
  position: sticky;
  top: 16px;
  z-index: 100;
  margin: 16px auto;
  max-width: 1160px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--bento-border);
  border-radius: 999px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

.bento-nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  padding: 0 24px;
  gap: 16px;
}

.bento-brand {
  font-size: 19px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #0f172a;
  flex-shrink: 0;
}

.bento-brand span { color: var(--bento-sky); }

.bento-brand svg { flex-shrink: 0; }

.bento-links {
  display: flex;
  gap: 22px;
  list-style: none;
  flex-wrap: wrap;
}

.bento-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--bento-muted);
}

.bento-links a:hover,
.bento-links a.active {
  color: var(--bento-sky);
}

.btn-bento {
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background: #e2e8f0;
  color: var(--bento-text);
}

.btn-bento:hover {
  transform: scale(1.02);
  color: var(--bento-text);
}

.btn-bento-primary {
  background: var(--bento-grad);
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.32);
}

.btn-bento-primary:hover {
  color: #fff !important;
}

.btn-bento-lg {
  padding: 10px 24px;
  font-size: 14px;
}

/* Hero */
.bento-hero {
  padding: 40px 0 60px;
}

.bento-hero-intro {
  text-align: center;
  margin-bottom: 36px;
}

.bento-hero-intro h1 {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
  color: var(--bento-text);
}

.bento-hero-intro p {
  max-width: 640px;
  margin: 0 auto 22px;
  color: var(--bento-muted);
  font-size: 15px;
  line-height: 1.7;
}

.bento-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* Bento grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(180px, auto);
  gap: 20px;
}

.bento-box {
  background: var(--bento-card);
  border: 1px solid var(--bento-border);
  border-radius: var(--bento-radius);
  padding: 28px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bento-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.box-2x2 {
  grid-area: span 2 / span 2;
  background: linear-gradient(135deg, #ffffff 0%, #e0f2fe 100%);
}

.box-2x1 { grid-column: span 2; }
.box-1x1 { grid-column: span 1; }

.bento-icon {
  font-size: 28px;
  line-height: 1;
  margin-bottom: 14px;
  display: block;
}

.bento-box h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
  color: #0f172a;
}

.bento-box p {
  font-size: 14px;
  color: var(--bento-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.bento-box .btn-bento {
  align-self: flex-start;
  margin-top: auto;
}

/* Download page */
.bento-dl-hero {
  text-align: center;
  padding: 28px 0 8px;
}

.bento-dl-hero h1 {
  font-size: clamp(26px, 3.5vw, 34px);
  font-weight: 800;
  margin-bottom: 8px;
}

.bento-dl-hero p {
  color: var(--bento-muted);
  font-size: 15px;
}

.bento-dl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 40px 0 60px;
}

.dl-bento-card {
  background: #fff;
  border: 1px solid var(--bento-border);
  border-radius: var(--bento-radius);
  padding: 32px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.dl-bento-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
}

.dl-bento-card h2 {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
}

.dl-bento-card .sub {
  color: var(--bento-muted);
  font-size: 14px;
}

.dl-bento-card .meta {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.7;
}

.dl-bento-card .btn-bento {
  width: 100%;
  margin-top: 12px;
  padding: 12px 18px;
}

.bento-tips {
  background: #fff;
  border: 1px solid var(--bento-border);
  border-radius: var(--bento-radius);
  padding: 28px 32px;
  margin-bottom: 50px;
}

.bento-tips h2 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 12px;
}

.bento-tips ol {
  margin-left: 20px;
  color: var(--bento-muted);
  font-size: 14px;
}

.bento-tips li { margin-bottom: 8px; }

/* Footer */
footer.bento-footer {
  background: var(--bento-footer);
  color: #94a3b8;
  padding: 50px 0 30px;
  font-size: 14px;
  border-radius: 30px 30px 0 0;
}

.bento-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}

.bento-footer-col h4 {
  color: #fff;
  margin-bottom: 14px;
  font-size: 15px;
}

.bento-footer-col p {
  font-size: 13px;
  line-height: 1.7;
  max-width: 360px;
}

.bento-footer-col .tag {
  display: inline-block;
  margin-top: 12px;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #64748b;
  text-transform: uppercase;
}

.bento-footer-col ul { list-style: none; }
.bento-footer-col li { margin-bottom: 8px; }
.bento-footer-col a { color: #94a3b8; }
.bento-footer-col a:hover { color: #fff; }

.bento-footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 18px;
  text-align: center;
  font-size: 12px;
  color: #64748b;
}

@media (max-width: 900px) {
  .bento-links { display: none; }
  .bento-grid,
  .bento-dl-grid,
  .bento-footer-grid {
    grid-template-columns: 1fr;
  }
  .box-2x2,
  .box-2x1 {
    grid-area: auto / span 1;
  }
  header.bento-header {
    margin: 12px 16px;
    max-width: none;
  }
}
