:root {
  --brand: #2f7cf6;
  --brand-dark: #1d64d8;
  --text: #1f2937;
  --muted: #64748b;
  --line: #e8eef7;
  --bg: #f5f8fc;
  --card: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(37, 99, 235, 0.08);
  --max: 1100px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
a { color: var(--brand); text-decoration: none; }
img { max-width: 100%; }
.container { width: min(100% - 32px, var(--max)); margin: 0 auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .inner {
  display: flex; align-items: center; gap: 20px;
  height: 64px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--text); font-weight: 800; font-size: 18px;
  white-space: nowrap;
}
.brand-badge {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(145deg, #4d8fff, #1d64d8);
  display: grid; place-items: center; color: #fff; font-size: 16px;
  box-shadow: 0 6px 14px rgba(47,124,246,.35);
}
.brand small { display: block; font-size: 11px; color: var(--muted); font-weight: 500; margin-top: 1px; }
.nav { display: flex; gap: 18px; margin-left: auto; flex-wrap: wrap; }
.nav a { color: #475569; font-size: 14px; padding: 6px 2px; border-bottom: 2px solid transparent; }
.nav a.active, .nav a:hover { color: var(--brand); border-bottom-color: var(--brand); }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 999px; padding: 10px 18px;
  background: var(--brand); color: #fff; font-size: 14px; cursor: pointer;
  transition: .15s ease;
}
.btn:hover { background: var(--brand-dark); }
.btn.ghost {
  background: #fff; color: var(--brand); border: 1px solid #b7d1ff;
}
.btn.block { width: 100%; }
.btn.lg { padding: 12px 22px; font-size: 15px; }
.header-cta { margin-left: 8px; }

/* Hero */
.hero {
  padding: 56px 0 40px;
  background:
    radial-gradient(800px 280px at 10% -10%, rgba(47,124,246,.16), transparent 60%),
    radial-gradient(600px 240px at 90% 0%, rgba(56,189,248,.12), transparent 55%),
    #fff;
}
.hero-grid {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; align-items: center;
}
.hero h1 { margin: 0 0 14px; font-size: clamp(28px, 4vw, 40px); line-height: 1.25; letter-spacing: -.02em; }
.hero p.lead { margin: 0 0 22px; color: var(--muted); font-size: 15px; max-width: 520px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-card {
  background: linear-gradient(160deg, #3b82f6, #1d4ed8);
  color: #fff; border-radius: 22px; padding: 28px 24px 18px;
  box-shadow: 0 20px 40px rgba(29,100,216,.28);
  position: relative; overflow: hidden; min-height: 280px;
}
.hero-card::before {
  content: ""; position: absolute; inset: auto -20% -30% 20%;
  height: 180px; background: rgba(255,255,255,.08); border-radius: 50%;
}
.hero-card .folder {
  width: 88px; height: 72px; margin: 18px auto 12px; border-radius: 12px;
  background: rgba(255,255,255,.18); display: grid; place-items: center; font-size: 34px;
}
.hero-card h3 { text-align: center; margin: 0 0 6px; font-size: 18px; }
.hero-card .sub { text-align: center; opacity: .9; font-size: 13px; margin-bottom: 18px; }
.feature-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 8px;
}
.feature-row span {
  background: rgba(255,255,255,.14); border-radius: 8px; padding: 8px 4px;
  text-align: center; font-size: 11px;
}
.ext-row {
  display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 14px;
}
.ext-row i {
  font-style: normal; background: #fff; color: #1d4ed8; border-radius: 6px;
  padding: 2px 6px; font-size: 10px; font-weight: 700;
}

.section { padding: 48px 0; }
.section.alt { background: #fff; }
.section h2 { margin: 0; text-align: center; font-size: 28px; }
.section .desc { text-align: center; color: var(--muted); margin: 8px 0 28px; }

.steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.step, .feat {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 18px; box-shadow: var(--shadow);
}
.step .n {
  width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff;
  display: grid; place-items: center; font-weight: 800; margin-bottom: 12px;
}
.step h3, .feat h3 { margin: 0 0 8px; font-size: 17px; }
.step p, .feat p { margin: 0; color: var(--muted); font-size: 13px; }
.feats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

.plugin-box, .card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow); padding: 22px;
}
.browsers { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 18px; }
.browsers button {
  border: 1px solid var(--line); background: #fff; border-radius: 10px;
  padding: 10px 12px; cursor: pointer; font-size: 13px; color: #334155;
}
.browsers button.active { border-color: var(--brand); color: var(--brand); background: #eff6ff; }
.steps-ol { margin: 0; padding-left: 18px; color: #334155; font-size: 14px; }
.steps-ol li { margin: 8px 0; }
.tip {
  margin-top: 14px; padding: 12px 14px; border-radius: 10px;
  background: #fffbeb; color: #92400e; font-size: 13px; border: 1px solid #fde68a;
}
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px; margin-bottom: 10px;
}
.faq summary { cursor: pointer; font-weight: 650; }
.faq p { margin: 8px 0 0; color: var(--muted); font-size: 14px; }

.site-footer {
  padding: 28px 0; text-align: center; color: var(--muted); font-size: 13px;
  border-top: 1px solid var(--line); background: #fff;
}

/* Plaza */
.plaza-hero { padding: 28px 0 10px; text-align: center; }
.plaza-hero h1 { margin: 0 0 16px; font-size: 30px; }
.search-bar {
  display: flex; gap: 10px; max-width: 720px; margin: 0 auto 18px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px;
  box-shadow: var(--shadow);
}
.search-bar input {
  flex: 1; border: 0; outline: none; padding: 10px 16px; font-size: 14px; background: transparent;
}
.filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 10px; }
.chip {
  border: 0; background: #eef2ff; color: #3730a3; border-radius: 999px;
  padding: 6px 12px; font-size: 13px; cursor: pointer;
}
.chip.active { background: var(--brand); color: #fff; }
.sorts { display: flex; gap: 12px; justify-content: center; margin-bottom: 18px; font-size: 13px; }
.sorts button { border: 0; background: none; color: var(--muted); cursor: pointer; }
.sorts button.active { color: var(--brand); font-weight: 700; }
.list-card { background: #fff; border-radius: 16px; border: 1px solid var(--line); overflow: hidden; }
.list-head {
  display: flex; justify-content: space-between; padding: 14px 18px;
  border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px;
}
.file-row {
  display: flex; align-items: center; gap: 12px; padding: 14px 18px;
  border-bottom: 1px solid #f1f5f9;
}
.file-row:last-child { border-bottom: 0; }
.file-icon {
  width: 42px; height: 42px; border-radius: 10px; color: #fff;
  display: grid; place-items: center; font-size: 12px; font-weight: 800; flex-shrink: 0;
}
.file-meta { flex: 1; min-width: 0; }
.file-meta .name { color: var(--brand); font-weight: 700; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-meta .sub { color: var(--muted); font-size: 12px; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tag {
  display: inline-block; margin-left: 8px; padding: 1px 6px; border-radius: 4px;
  background: #eff6ff; color: #1d4ed8; font-size: 11px; font-weight: 600; vertical-align: middle;
}

/* App center */
.app-wrap { padding: 20px 0 40px; }
.settings-bar {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; margin-bottom: 16px;
}
.settings-bar label { font-size: 13px; color: #475569; display: inline-flex; align-items: center; gap: 6px; }
.settings-bar select, .settings-bar input[type="number"], .settings-bar input[type="text"] {
  border: 1px solid #dbe3ef; border-radius: 8px; padding: 7px 10px; font-size: 13px;
}
.app-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 16px; margin-bottom: 16px; }
.drop {
  border: 1.5px dashed #cbd5e1; border-radius: 12px; padding: 36px 16px; text-align: center;
  background: #fafbfc; cursor: pointer;
}
.drop.drag { background: #eff6ff; border-color: #60a5fa; }
.login-box { text-align: center; padding: 36px 16px; }
.login-box img { width: 200px; height: 200px; border: 1px solid var(--line); border-radius: 12px; }
.recent-item {
  display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #f1f5f9; font-size: 13px;
}
.float-mp {
  position: fixed; left: 16px; bottom: 24px; width: 148px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow); padding: 12px; text-align: center; z-index: 40;
}
.float-mp img { width: 110px; height: 110px; object-fit: contain; }
.toast {
  position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%);
  background: rgba(15,23,42,.92); color: #fff; padding: 10px 16px; border-radius: 8px;
  font-size: 13px; opacity: 0; pointer-events: none; transition: .2s; z-index: 99;
}
.toast.show { opacity: 1; }

@media (max-width: 900px) {
  .hero-grid, .steps, .feats, .app-grid { grid-template-columns: 1fr; }
  .nav { display: none; }
  .float-mp { display: none; }
  .feature-row { grid-template-columns: repeat(2, 1fr); }
}
