@charset "utf-8";

:root {
  --chcc-primary: #1972f5;
  --chcc-primary-dark: #1358bf;
  --chcc-surface: #ffffff;
  --chcc-surface-soft: #f5f8fd;
  --chcc-border: #dce6f2;
  --chcc-text: #1c293b;
  --chcc-muted: #5c7088;
  --chcc-shadow: 0 18px 42px rgba(25, 114, 245, 0.12);
}

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

header .csh-wrapper .csh-header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

header .csh-wrapper .csh-header-main .csh-header-main-logo {
  float: none;
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

header .csh-wrapper .csh-header-main .csh-header-main-logo-name {
  letter-spacing: 0.2px;
}

header .csh-wrapper .csh-header-main .csh-header-main-actions {
  float: none;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
}

header .csh-wrapper .csh-header-main .csh-header-main-actions .csh-header-main-actions-website {
  margin: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

header .csh-wrapper .csh-header-main .csh-header-main-actions .csh-header-main-actions-website:hover {
  background: rgba(255, 255, 255, 0.24);
}

header .csh-wrapper .csh-header-main .csh-header-main-actions .csh-header-main-actions-website-itself {
  white-space: nowrap;
}

header .csh-wrapper .csh-header-search {
  width: min(100%, 720px);
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 6;
}

header .csh-wrapper .csh-header-search .csh-header-search-results {
  overflow: visible;
}

body[data-chcc-page="home"] header .csh-wrapper .csh-header-main {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 22px;
}

body[data-chcc-page="home"] header .csh-wrapper .csh-header-main .csh-header-main-logo,
body[data-chcc-page="home"] header .csh-wrapper .csh-header-main .csh-header-main-actions {
  justify-content: center;
  width: 100%;
}

body[data-chcc-page="home"] header .csh-wrapper .csh-header-main .csh-header-main-logo-name,
body[data-chcc-page="home"] .csh-header-title,
body[data-chcc-page="home"] .csh-home .csh-home-title {
  text-align: center;
}

body[data-chcc-page="home"] .chcc-inline-notice {
  max-width: min(100%, 1120px);
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center;
}

body[data-chcc-page="home"] .chcc-inline-notice p,
body[data-chcc-page="home"] .chcc-inline-notice hr {
  margin-left: auto !important;
  margin-right: auto !important;
}

body[data-chcc-page="home"] .chcc-inline-notice p {
  max-width: 880px;
}

body[data-chcc-page="home"] .chcc-inline-notice hr {
  max-width: 920px;
}

.chcc-article-notice {
  margin: 22px 0 28px !important;
  text-align: left;
}

.chcc-article-notice p,
.chcc-article-notice hr {
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: none !important;
}

.chcc-inline-notice {
  background: linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%) !important;
  border: 1px solid var(--chcc-border) !important;
  border-radius: 20px !important;
  padding: 24px clamp(18px, 3vw, 28px) !important;
  margin: 22px 0 10px !important;
  box-shadow: var(--chcc-shadow);
}

.chcc-category-empty {
  margin: 10px 0 4px;
  color: var(--chcc-muted);
  line-height: 1.75;
}

.chcc-inline-notice p {
  margin: 0 0 10px;
}

.chcc-inline-notice p:last-child {
  margin-bottom: 0;
}

.chcc-inline-notice hr {
  margin: 18px 0 !important;
  border-top-color: #e8eef7 !important;
}

.chcc-inline-button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, var(--chcc-primary) 0%, var(--chcc-primary-dark) 100%) !important;
  color: #fff !important;
  font-weight: 700;
  text-decoration: none !important;
  box-shadow: 0 12px 24px rgba(25, 114, 245, 0.18);
}

.chcc-search-panel {
  display: none;
  margin-top: 12px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--chcc-border);
  border-radius: 18px;
  box-shadow: 0 24px 40px rgba(28, 41, 59, 0.12);
  overflow: hidden;
}

.csh-header-search[data-chcc-open="true"] .chcc-search-panel {
  display: block;
}

.chcc-search-status {
  padding: 14px 18px 10px;
  color: var(--chcc-muted);
  font-size: 13px;
  line-height: 1.6;
}

.chcc-search-list {
  list-style: none;
  margin: 0;
  padding: 0 10px 10px;
}

.chcc-search-list li {
  margin: 0;
}

.chcc-search-link {
  display: block;
  padding: 12px 12px;
  border-radius: 14px;
  color: var(--chcc-text);
}

.chcc-search-link:hover {
  background: var(--chcc-surface-soft);
}

.chcc-search-title {
  display: block;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 700;
}

.chcc-search-desc {
  display: block;
  margin-top: 4px;
  color: var(--chcc-muted);
  font-size: 12px;
  line-height: 1.55;
}

.chcc-search-tag {
  display: inline-flex;
  align-items: center;
  margin-bottom: 6px;
  padding: 0 10px;
  min-height: 24px;
  border-radius: 999px;
  background: #eef4ff;
  color: var(--chcc-primary-dark);
  font-size: 11px;
  font-weight: 700;
}

.chcc-search-empty {
  padding: 4px 12px 14px;
  color: var(--chcc-muted);
  font-size: 13px;
  line-height: 1.6;
}

.csh-home section .csh-home-list li a {
  min-height: 126px;
}

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

.csh-article .csh-article-content article table,
.csh-article .csh-article-content article .csh-markdown.csh-markdown-table {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.csh-article .csh-article-content article .csh-markdown.csh-markdown-code.csh-markdown-code-block {
  max-width: 100%;
}

.csh-article .csh-article-content article .csh-article-content-header .csh-article-content-header-metas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.csh-article .csh-article-content article .csh-article-content-header .csh-article-content-header-metas .csh-article-content-header-metas-separator {
  display: none;
}

.csh-article .csh-article-content article .csh-article-content-header h1,
.csh-home .csh-home-title,
.csh-header-title {
  text-wrap: balance;
}

@media screen and (max-width: 980px) {
  header .csh-wrapper .csh-header-main {
    justify-content: center;
    text-align: center;
  }

  header .csh-wrapper .csh-header-main .csh-header-main-logo,
  header .csh-wrapper .csh-header-main .csh-header-main-actions {
    justify-content: center;
    width: 100%;
  }
}

@media screen and (max-width: 780px) {
  header .csh-wrapper .csh-header-main .csh-header-main-actions {
    gap: 10px;
  }

  header .csh-wrapper .csh-header-main .csh-header-main-actions .csh-header-main-actions-website {
    flex: 1 1 240px;
    width: 100%;
  }

  .csh-home section[data-type="categories"] .csh-home-list li a {
    padding: 16px 18px;
  }

  .csh-home section[data-type="categories"] .csh-home-list li a .csh-home-list-image {
    width: 82px;
    height: 82px;
    margin-right: 18px;
  }
}

@media screen and (max-width: 480px) {
  .chcc-inline-notice {
    border-radius: 16px !important;
    padding: 18px 14px !important;
  }

  .chcc-inline-button {
    width: 100%;
    padding: 0 16px !important;
  }

  .csh-home section[data-type="categories"] .csh-home-list li a {
    display: block;
  }

  .csh-home section[data-type="categories"] .csh-home-list li a .csh-home-list-image {
    margin: 0 auto 14px;
  }

  .csh-home section[data-type="categories"] .csh-home-list li a .csh-home-list-aside,
  .csh-home section[data-type="categories"] .csh-home-list li a .csh-home-list-wrap,
  .csh-home section[data-type="categories"] .csh-home-list li a .csh-home-list-category {
    text-align: center;
  }

  .csh-article .csh-article-content article .csh-markdown.csh-markdown-code.csh-markdown-code-block {
    white-space: pre-wrap;
    word-break: break-word;
  }
}
