﻿:root {
  --bg: #f4f5f2;
  --surface: #ffffff;
  --text: #1a1f26;
  --muted: #5f6670;
  --accent: #0e7a65;
  --border: #e2e5df;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  line-height: 1.55;
}

.container {
  width: min(1200px, 94vw);
  margin: 0 auto;
}

.tool-page > .site-header .container,
.tool-page > main.container,
.tool-page > .site-footer .container {
  width: min(1200px, 94vw);
  max-width: none;
  margin: 0 auto;
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
}

.header-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 0;
  gap: 1rem;
}

.brand {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--accent);
}

.hero,
.page-intro {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem;
  margin: 1.5rem 0;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.74rem;
  color: var(--muted);
  margin: 0 0 0.5rem;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin-top: 0;
}

h1 {
  margin-bottom: 0.8rem;
}

.btn {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.66rem 1rem;
  border-radius: 8px;
  background: var(--accent);
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
}

.featured article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 14px;
  padding: 1.3rem;
  margin-bottom: 1.4rem;
}

.content-grid,
.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.article-shell {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  margin: 1.5rem 0 2rem;
}

.article-shell h1 {
  margin-bottom: 1rem;
}

.article-content {
  color: var(--text);
}

.article-content > * {
  max-width: 100%;
}

.article-content h2,
.article-content h3,
.article-content h4 {
  margin-top: 1.4rem;
  margin-bottom: 0.65rem;
}

.article-content p,
.article-content li {
  color: var(--text);
  font-size: 1rem;
}

.article-content p {
  margin: 0 0 0.95rem;
}

.article-content ul,
.article-content ol {
  margin: 0 0 1rem 1.2rem;
  padding: 0;
}

.article-content li {
  margin-bottom: 0.4rem;
}

.article-content pre {
  margin: 0.5rem 0;
  white-space: pre-wrap;
  font-family: "Consolas", "Courier New", monospace;
  font-size: 0.95rem;
}

.article-content center {
  display: block;
  text-align: left;
  margin: 1rem 0;
}

.article-content img,
.article-content iframe,
.article-content video {
  max-width: 100%;
  height: auto;
}

.article-content table {
  border-collapse: collapse;
  display: block;
  overflow-x: auto;
  width: 100%;
  margin: 1rem 0;
}

.tool-intro {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.1rem 1.2rem;
  margin: 1.2rem 0;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.tool-page .ll-AudioWord_question,
.tool-page .ll-AudioWord_question2 {
  width: 100%;
  max-width: none;
}

.tool-page .max-w-7xl {
  width: 100%;
  max-width: none;
}

.tool-page main.container {
  padding-top: 1.5rem;
  padding-bottom: 2rem;
}

.tool-page .tool-content-scope {
  margin-bottom: 2rem;
  min-height: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
}

.tool-page .blog-details.blog-sig-details,
.tool-page .ll-AudioWord_question,
.tool-page .ll-AudioWord_question2,
.tool-page .max-w-7xl,
.tool-page .container_app {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgb(26 31 38 / 0.04);
}

.tool-page .blog-details.blog-sig-details,
.tool-page .ll-AudioWord_question2,
.tool-page .max-w-7xl {
  padding: 1.35rem;
  margin: 0 0 1.25rem;
}

.tool-page .ll-AudioWord_question {
  margin: 0 0 1.25rem;
  overflow: hidden;
}

.tool-page .container_app {
  margin: 0 0 1.25rem;
  overflow: hidden;
}

.tool-page .ll-AudioWord_question2 h1,
.tool-page .blog-details.blog-sig-details h1,
.tool-page .max-w-7xl h1 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.1;
}

.tool-page .ll-AudioWord_question2 p,
.tool-page .blog-details.blog-sig-details p,
.tool-page .max-w-7xl p {
  color: var(--text);
}

.tool-page .responsive-iframe {
  border: 0;
}

.tool-page #demo,
.tool-page #demo2 {
  font-weight: 600;
}

.article-content th,
.article-content td {
  border: 1px solid var(--border);
  padding: 0.55rem 0.65rem;
  text-align: left;
  vertical-align: top;
}

.article-content th {
  background: #eef2ec;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
}

.card p {
  margin: 0;
}

.meta {
  color: var(--muted);
  font-size: 0.86rem;
  margin-bottom: 0.35rem;
}

a {
  color: var(--text);
}

a:hover {
  color: var(--accent);
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 1rem;
  padding: 1.2rem 0;
}

.footer-grid h2,
.footer-grid h3 {
  margin: 0 0 0.55rem;
}

.footer-grid h2 {
  font-size: 1.15rem;
}

.footer-grid h3 {
  font-size: 0.95rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer-grid p {
  margin: 0 0 0.45rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-links a {
  display: block;
  margin-bottom: 0.45rem;
  text-decoration: none;
}

.footer-note {
  border-top: 1px solid var(--border);
  padding: 0.8rem 0 1rem;
}

.footer-note p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1rem 0;
}

.footer-wrap p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 900px) {
  .content-grid,
  .archive-grid,
  .tools-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .header-wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero,
  .page-intro,
  .article-shell {
    padding: 1.3rem;
  }

  .content-grid,
  .archive-grid,
  .tools-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}
