:root {
  --bg: #ffffff;
  --bg-soft: #f4f6fb;
  --card: #ffffff;
  --text: #1a1a2e;
  --muted: #6b7280;
  --brand: #ff6b6b;
  --brand-2: #ffd93d;
  --accent: #4f8cff;
  --accent-2: #7c5cfc;
  --border: rgba(0,0,0,0.08);
  --radius: 24px;
  --shadow: 0 20px 60px rgba(0,0,0,0.08);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Space Grotesk", "Noto Sans", sans-serif;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}
.container { width: min(1120px, 92%); margin: 0 auto; position:relative; }
.topbar {
  padding: 18px 0; display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  position: relative; z-index: 2;
}
.brand {
  font-weight: 700; font-size: 1.1rem; letter-spacing: 0.4px;
  color: var(--text);
}
.langs a {
  color: var(--muted); text-decoration: none; margin: 0 6px; font-size: 0.85rem; font-weight: 500;
  transition: all 0.2s;
  padding: 4px 10px; border-radius: 8px;
}
.langs a:hover { color: var(--accent); background: rgba(79,140,255,0.08); }
.hero { padding: 10px 0 18px; position: relative; }
.hero::before {
  content: ''; position: absolute; top: -80px; right: -40px; width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(255,107,107,0.08), transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; bottom: -60px; left: -60px; width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(124,92,252,0.07), transparent 70%);
  pointer-events: none;
}
.hero-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 8px);
  box-shadow: var(--shadow);
  padding: 32px;
  position: relative;
}
h1 { margin: 0 0 8px; font-size: clamp(1.6rem, 4vw, 2.8rem); line-height: 1.15; font-weight: 700; }
.subtitle { color: var(--muted); margin: 0 0 24px; font-size: clamp(0.9rem, 2vw, 1.1rem); }
.tool-form { display: grid; gap: 14px; }
.tool-form label { font-weight: 600; font-size: 0.9rem; color: var(--muted); }
input, select, textarea {
  font-size: 16px;
  border-radius: 14px;
  border: 1.5px solid var(--border);
  background: var(--bg-soft);
  color: var(--text);
  padding: 14px 16px;
  transition: border-color 0.25s, box-shadow 0.25s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(79,140,255,0.12); }
button {
  font: inherit;
  border-radius: 14px;
  border: 0;
  background: linear-gradient(135deg, var(--brand), #ff8e53);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  padding: 14px 24px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 8px 30px rgba(255,107,107,0.25);
}
button:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(255,107,107,0.35); }
button:active { transform: translateY(0); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 0 6px; font-size: 0.82rem; color: var(--muted); list-style: none; }
.breadcrumb a { color: var(--accent); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent-2); text-decoration: underline; }
.breadcrumb li+li::before { content: "/"; padding: 0 6px; color: var(--border); }
.seo-content h2 {
  color: var(--accent-2);
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
  margin-top: 32px;
  font-size: clamp(1.2rem,3vw,1.6rem);
}
.seo-content h3 { color: var(--text); margin-top: 18px; }
.seo-content p, .seo-content li { color: var(--muted); line-height: 1.7; }
.seo-content ul, .seo-content ol { padding-left: 20px; }
.seo-content li { margin-bottom: 6px; }
.seo-content strong { color: var(--text); }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 20px 0; }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: transform 0.25s, box-shadow 0.25s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 50px rgba(0,0,0,0.1); }
.card h3 { margin: 2px 0 8px; font-size: 1.05rem; font-weight: 600; }
.card p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.section { margin: 16px 0 32px; }
.section h2 { margin-bottom: 10px; font-size: clamp(1.1rem,3vw,1.5rem); font-weight: 700; }
.section p, .section li { color: var(--muted); }
.faq details {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 10px;
  transition: border-color 0.2s;
}
.faq details[open] { border-color: var(--accent-2); }
.faq summary { font-weight: 600; cursor: pointer; }
.footer {
  color: var(--muted);
  padding: 24px 0 40px;
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
  margin-top: 10px;
}
.links a {
  color: var(--accent-2);
  margin-right: 12px;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.links a:hover { color: var(--accent); }
.ad { text-align: center; margin: 24px 0; min-height: 90px; overflow: hidden; }
.btn-group-2 { display:flex; gap:8px; justify-content:center; margin:16px 0; flex-wrap:wrap; }
.btn-group-2 a {
  padding:10px 18px; border-radius:100px; border:1.5px solid var(--border);
  color:var(--muted); text-decoration:none;
  background:var(--bg-soft);
  font-weight:600; font-size:clamp(0.75rem,2vw,0.95rem); white-space:nowrap;
  transition: all 0.25s;
}
.btn-group-2 a:hover { background:var(--bg); color:var(--text); border-color:rgba(0,0,0,0.15); }
.btn-group-2 a.active {
  background:linear-gradient(135deg,var(--brand),#ff8e53);
  color:#fff; border-color:transparent;
  box-shadow:0 6px 25px rgba(255,107,107,0.25);
}
textarea { width:100%; box-sizing:border-box; resize:vertical; font-size:0.85rem; }
video { width:100%; border-radius:12px; }
.controls { display:flex; gap:6px; flex-wrap:wrap; margin-top:10px; }
.controls button { flex:1; min-width:70px; padding:12px 8px; font-size:clamp(0.78rem,2vw,0.95rem); justify-content:center; }
.copy-btn { width:100%; }
.btn-row { display:flex; gap:8px; }
.btn-row button { flex:1; }
@media (min-width: 640px) {
  .btn-group-2 a { padding:12px 24px; font-size:1rem; }
  .btn-group-2 { gap:12px; }
  .hero-box { padding:40px; }
}
@media (min-width: 901px) { .grid { grid-template-columns:repeat(3,1fr); } }
@media (max-width: 900px) { .grid { grid-template-columns:1fr 1fr; } }
@media (max-width: 640px) {
  .grid { grid-template-columns:1fr; }
  .hero-box { padding:20px; }
  .langs a { margin:0 4px; font-size:0.78rem; padding:3px 7px; }
  .langs { display:flex; flex-wrap:wrap; justify-content:center; }
  .topbar { justify-content:center; flex-direction:column; align-items:center; text-align:center; }
  .hero::before, .hero::after { display:none; }
  .btn-group-2 a { font-size:clamp(0.7rem,2.5vw,0.85rem); padding:8px 12px; }
}
@media (max-width: 420px) {
  .btn-row { flex-direction:column; }
}
