:root {
  --bg: #edf2ef;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-strong: #ffffff;
  --text: #10211f;
  --muted: #60726d;
  --line: rgba(16, 33, 31, 0.08);
  --accent: #0f6c60;
  --accent-soft: rgba(15, 108, 96, 0.12);
  --warm: #d9a95e;
  --shadow: 0 28px 70px rgba(23, 40, 37, 0.12);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --font-ui: "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top left, rgba(217, 169, 94, 0.18), transparent 28%),
    radial-gradient(circle at right top, rgba(15, 108, 96, 0.18), transparent 26%),
    linear-gradient(180deg, #f7f8f5 0%, #edf2ef 100%);
  color: var(--text);
  font-family: var(--font-ui);
}

body {
  padding: 22px;
}

.page-shell {
  max-width: 1320px;
  margin: 0 auto;
}

.hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 34px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(7, 42, 46, 0.96), rgba(16, 92, 85, 0.94));
  color: #f4f8f7;
  box-shadow: var(--shadow);
}

.hero__brand {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.hero__logo {
  width: clamp(118px, 10vw, 136px);
  height: clamp(118px, 10vw, 136px);
  object-fit: contain;
  border-radius: 28px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 30px rgba(6, 24, 21, 0.16);
}

.hero__title p {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.22em;
  color: rgba(244, 248, 247, 0.7);
}

.hero__title h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 68px);
  line-height: 1;
}

.hero__tools {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.hero__tools input,
.software-link,
.session-link,
.result-count {
  min-height: 48px;
  border-radius: 999px;
  font: inherit;
}

.hero__tools input {
  width: min(320px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.12);
  color: #f4f8f7;
  padding: 0 18px;
  outline: none;
}

.hero__tools input::placeholder {
  color: rgba(244, 248, 247, 0.62);
}

.result-count {
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(244, 248, 247, 0.88);
}

.software-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  background: #f3efe4;
  color: #153633;
  text-decoration: none;
  font-weight: 700;
}

.session-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.12);
  color: #f4f8f7;
  text-decoration: none;
  font-weight: 700;
}

.session-link--admin {
  background: linear-gradient(135deg, #f3efe4, #ead8af);
  color: #143633;
  box-shadow: 0 12px 24px rgba(217, 169, 94, 0.18);
}

.doc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.doc-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 200px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(246, 249, 248, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 44px rgba(18, 36, 33, 0.08);
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.doc-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 26px 50px rgba(18, 36, 33, 0.13);
  border-color: rgba(15, 108, 96, 0.18);
}

.doc-card[hidden] {
  display: none;
}

.hero--tools-only {
  align-items: center;
  justify-content: flex-end;
  padding: 20px 24px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.86);
  color: var(--text);
}

.hero--tools-only .hero__tools input {
  border: 1px solid rgba(16, 33, 31, 0.12);
  background: rgba(246, 248, 247, 0.92);
  color: var(--text);
}

.hero--tools-only .hero__tools input::placeholder {
  color: var(--muted);
}

.hero--tools-only .result-count {
  background: rgba(15, 108, 96, 0.1);
  color: var(--accent);
}

.hero--tools-only .session-link {
  background: rgba(15, 108, 96, 0.1);
  color: var(--accent);
}

.hero--tools-only .session-link--admin {
  background: linear-gradient(135deg, #0f6c60, #145247);
  color: #f7fbfa;
}

.doc-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.doc-card__no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
}

.doc-card__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  margin-top: 14px;
  padding: 0 12px;
  border-radius: 999px;
  align-self: flex-start;
  background: rgba(15, 108, 96, 0.1);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.doc-card--featured {
  background:
    radial-gradient(circle at right top, rgba(217, 169, 94, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 250, 248, 0.96));
}

.doc-card h2 {
  margin: 26px 0 18px;
  font-size: clamp(23px, 2.2vw, 30px);
  line-height: 1.25;
  flex: 1;
}

.doc-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.doc-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.doc-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.doc-link:hover {
  transform: translateY(-1px);
}

.doc-link--primary {
  background: linear-gradient(135deg, var(--accent), #0b5249);
  color: #f4f8f7;
  box-shadow: 0 14px 26px rgba(15, 108, 96, 0.18);
}

.doc-link--secondary {
  border: 1px solid rgba(16, 33, 31, 0.08);
  background: rgba(16, 33, 31, 0.05);
  color: var(--text);
}

.empty-state {
  margin: 28px 0 0;
  text-align: center;
  color: var(--muted);
}

.mixly-main {
  display: grid;
  gap: 20px;
  margin-top: 24px;
}

.mixly-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 38px rgba(18, 36, 33, 0.08);
}

.mixly-subnav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(16, 33, 31, 0.05);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.mixly-subnav a:hover {
  transform: translateY(-1px);
}

.mixly-subnav a.is-active {
  background: linear-gradient(135deg, var(--accent), #0b5249);
  color: #f4f8f7;
  box-shadow: 0 12px 26px rgba(15, 108, 96, 0.18);
}

.mixly-kpi {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.mixly-kpi__item {
  padding: 20px 22px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 250, 248, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 38px rgba(18, 36, 33, 0.08);
}

.mixly-kpi__item span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.mixly-kpi__item strong {
  display: block;
  margin-top: 10px;
  font-size: clamp(24px, 2.6vw, 34px);
}

.mixly-category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.mixly-category-card {
  display: grid;
  gap: 14px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at right top, rgba(217, 169, 94, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 250, 248, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 44px rgba(18, 36, 33, 0.08);
}

.mixly-category-card h2 {
  margin: 0;
  font-size: clamp(24px, 2.4vw, 32px);
}

.mixly-category-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.mixly-category-card__meta,
.file-item__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}

.mixly-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(15, 108, 96, 0.1);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.mixly-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 38px rgba(18, 36, 33, 0.08);
}

.mixly-toolbar input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(16, 33, 31, 0.12);
  background: #fff;
  color: var(--text);
  font: inherit;
  outline: none;
}

.mixly-toolbar input:focus {
  border-color: rgba(15, 108, 96, 0.28);
  box-shadow: 0 0 0 4px rgba(15, 108, 96, 0.08);
}

.mixly-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(15, 108, 96, 0.1);
  color: var(--accent);
  font-weight: 700;
  white-space: nowrap;
}

.file-section {
  display: grid;
  gap: 12px;
}

.file-section h3 {
  margin: 0;
  font-size: 20px;
}

.file-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.file-item {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 249, 248, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 34px rgba(18, 36, 33, 0.08);
}

.file-item__name {
  margin: 0;
  font-size: 18px;
  line-height: 1.45;
  font-weight: 800;
  word-break: break-word;
}

.file-item__meta {
  color: var(--muted);
  font-size: 13px;
}

.file-item__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mixly-empty {
  margin: 0;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.9);
  color: var(--muted);
  text-align: center;
}

.mixly-preview {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 44px rgba(18, 36, 33, 0.08);
}

.mixly-preview h2 {
  margin: 0;
  font-size: clamp(24px, 2.8vw, 34px);
  line-height: 1.25;
}

.mixly-note {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.word-content {
  margin-top: 18px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid rgba(16, 33, 31, 0.08);
  overflow: auto;
}

.word-content img {
  max-width: 100%;
  height: auto;
}

.word-content table {
  max-width: 100%;
}

.word-content p,
.word-content span,
.word-content td,
.word-content th {
  word-break: break-word;
}

@media (max-width: 980px) {
  .hero {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__tools {
    justify-content: flex-start;
  }

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

  .mixly-kpi,
  .mixly-category-grid,
  .file-grid {
    grid-template-columns: 1fr;
  }

  .mixly-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 680px) {
  body {
    padding: 14px;
  }

  .hero {
    padding: 24px;
  }

  .hero__tools input {
    width: 100%;
  }

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

  .mixly-subnav {
    padding: 12px;
  }

  .mixly-subnav a,
  .file-item__actions .doc-link {
    width: 100%;
  }

  .mixly-preview {
    padding: 18px;
  }

  .doc-card__actions {
    flex-direction: column;
  }

  .doc-link {
    width: 100%;
  }
}
