/**
 * Reference Website Style CSS - Modern Version
 * Based on 国家通用语言文字教学与研究杂志社官网
 * Modern implementation with enhanced styling
 */

/* ============================================
   CSS Variables - Modern Color Scheme
   ============================================ */
:root {
  --ref-primary: #176b9e; /* Steel blue: brand color */
  --ref-primary-dark: #0f4e78; /* Deep steel blue for hover */
  --ref-primary-light: #e8f2f7; /* Cool blue-gray background */
  --ref-secondary: #5d6b75; /* Industrial gray */
  --ref-accent: #cf741f; /* Metal orange: reserved for emphasis */
  --ref-accent-dark: #a85518; /* Metal orange for hover */
  --ref-accent-light: #fff3e6; /* Soft orange emphasis background */
  --ref-text: #202b33; /* Main text color */
  --ref-text-light: #62717b; /* Secondary text */
  --ref-border: #ccd7dd; /* Cool industrial border */
  --ref-bg: #f4f7f8; /* Cool neutral background */
  --ref-white: #ffffff;
  --ref-success: #287a68; /* Reserved status green */
  --ref-shadow: rgba(48, 65, 75, 0.1);
  --ref-shadow-hover: rgba(48, 65, 75, 0.2);
}

/* ============================================
   Base Reset & Typography
   ============================================ */

body {
  margin: 0;
  padding: 0;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ref-text);
  background: var(--ref-bg);
}

a {
  color: var(--ref-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--ref-primary-dark);
  text-decoration: none;
}

img {
  border: 0;
  max-width: 100%;
  height: auto;
}

/* ============================================
   Layout Containers
   ============================================ */
.wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* ============================================
   Header & Navigation
   ============================================ */
.header-top {
  width: 100%;
  min-height: 200px;
  height: clamp(200px, 14vw, 280px);
  overflow: hidden;
  position: relative;
  isolation: isolate;
  background: #175c79 url("../images/xjgt-header-banner.jpg") center center /
    cover no-repeat;
  border-bottom: 1px solid rgba(10, 62, 85, 0.38);
}

.header-top::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(8, 53, 74, 0.76) 0%,
    rgba(12, 79, 105, 0.44) 36%,
    rgba(12, 86, 112, 0.08) 67%,
    rgba(12, 86, 112, 0) 100%
  );
}

.site-title {
  position: absolute;
  top: 50%;
  left: max(24px, calc((100vw - 1200px) / 2));
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: calc(100% - 48px);
  box-sizing: border-box;
  padding: 3px 0 4px 25px;
  transform: translateY(-50%);
  transition:
    transform 0.35s ease,
    filter 0.35s ease;
  white-space: nowrap;
}

.header-top--home .site-title {
  animation: title-arrive 0.9s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.site-title::before {
  content: "";
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  width: 4px;
  background: #d68832;
  box-shadow: 8px 0 22px rgba(214, 136, 50, 0.22);
  transform-origin: center;
  animation: title-accent-pulse 3.2s ease-in-out 0.7s infinite;
}

.site-title__cn {
  position: relative;
  display: block;
  font-family: STZhongsong, "Songti SC", SimSun, "Microsoft YaHei", serif;
  font-size: clamp(52px, 4.5vw, 76px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.11em;
  color: #f2f7f9;
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  background-image: linear-gradient(
    105deg,
    #aebfc6 0%,
    #eef5f7 18%,
    #ffffff 28%,
    #bacbd2 39%,
    #f9fcfd 48%,
    #9eb2bb 59%,
    #edf4f6 76%,
    #b3c5cc 100%
  );
  background-size: 240% 100%;
  -webkit-text-stroke: 0.45px rgba(255, 255, 255, 0.58);
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.28),
    0 4px 12px rgba(3, 40, 57, 0.38);
  animation: title-metal-scan 5.2s ease-in-out infinite;
  transition:
    text-shadow 0.35s ease,
    filter 0.35s ease;
}

.site-title__cn::after {
  content: attr(data-title);
  position: absolute;
  inset: 0;
  pointer-events: none;
  color: transparent;
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  background-image: linear-gradient(
    105deg,
    transparent 0%,
    transparent 42%,
    rgba(255, 255, 255, 0.96) 49%,
    rgba(255, 244, 214, 0.82) 52%,
    transparent 59%,
    transparent 100%
  );
  background-position: 150% 50%;
  background-repeat: no-repeat;
  background-size: 230% 100%;
  mix-blend-mode: screen;
  opacity: 0;
  animation: title-highlight-sweep 4.4s cubic-bezier(0.4, 0, 0.2, 1) 1s infinite;
}

.site-title__en {
  position: relative;
  display: block;
  margin-top: 12px;
  padding: 8px 14px 0 0.18em;
  background-image: linear-gradient(
    90deg,
    rgba(190, 205, 211, 0) 0%,
    rgba(190, 205, 211, 0.42) 7%,
    rgba(223, 234, 238, 0.72) 48%,
    rgba(178, 199, 208, 0.54) 78%,
    rgba(178, 199, 208, 0) 100%
  );
  background-position: left top;
  background-repeat: no-repeat;
  background-size: 100% 1px;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: clamp(13px, 1.02vw, 17px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.2em;
  color: rgba(244, 249, 251, 0.88);
  text-transform: uppercase;
  text-shadow: 0 2px 7px rgba(3, 40, 57, 0.4);
}

.site-title__en::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 7%;
  height: 2px;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.98) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform-origin: center;
  animation: title-divider-breathe 3.2s ease-in-out infinite;
}

.site-title:hover,
.site-title:focus {
  transform: translateY(calc(-50% - 3px));
  filter: drop-shadow(0 7px 8px rgba(3, 35, 49, 0.18));
  text-decoration: none;
}

.site-title:hover .site-title__cn,
.site-title:focus .site-title__cn {
  filter: brightness(1.08);
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.5),
    0 3px 0 rgba(89, 114, 124, 0.28),
    0 8px 18px rgba(3, 40, 57, 0.5);
}

@keyframes title-metal-scan {
  0%,
  18% {
    background-position: 100% 50%;
  }
  72%,
  100% {
    background-position: 0 50%;
  }
}

@keyframes title-arrive {
  0% {
    opacity: 0;
    transform: translate3d(-18px, calc(-50% + 8px), 0);
    filter: blur(4px);
  }
  65% {
    opacity: 1;
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, -50%, 0);
    filter: blur(0);
  }
}

@keyframes title-highlight-sweep {
  0%,
  16% {
    background-position: 150% 50%;
    opacity: 0;
  }
  24% {
    opacity: 0.9;
  }
  48% {
    background-position: -55% 50%;
    opacity: 0;
  }
  100% {
    background-position: -55% 50%;
    opacity: 0;
  }
}

@keyframes title-accent-pulse {
  0%,
  100% {
    opacity: 0.72;
    transform: scaleY(0.88);
    box-shadow: 8px 0 18px rgba(214, 136, 50, 0.18);
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
    box-shadow: 8px 0 27px rgba(235, 157, 67, 0.42);
  }
}

@keyframes title-divider-breathe {
  0%,
  100% {
    opacity: 0.05;
    transform: scaleX(0.82) scaleY(0.5);
  }
  45%,
  55% {
    opacity: 1;
    transform: scaleX(1) scaleY(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-title,
  .site-title::before,
  .site-title__cn,
  .site-title__cn::after,
  .site-title__en::before {
    animation: none;
  }

  .site-title__cn::after {
    display: none;
  }
}

/* Navigation */
.nav-wrapper {
  width: 100%;
  background: linear-gradient(
    135deg,
    var(--ref-primary) 0%,
    var(--ref-primary-dark) 100%
  );
  position: relative;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(15, 78, 120, 0.28);
}

.nav-menu {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  list-style: none;
}

.nav-menu li {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu > li > a {
  display: flex;
  position: relative;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  height: 50px;
  color: var(--ref-white);
  font-weight: 500;
  font-size: 15px;
  text-align: center;
  transition:
    background-color 0.25s ease,
    color 0.25s ease;
  letter-spacing: 0.3px;
}

.nav-menu > li > a:hover {
  background: rgba(255, 255, 255, 0.12);
  text-decoration: none;
}

.nav-menu > li > a::after {
  content: "";
  position: absolute;
  right: 50%;
  bottom: 0;
  left: 50%;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--ref-accent);
  box-shadow: 0 0 8px rgba(207, 116, 31, 0.62);
  opacity: 0;
  transition:
    left 0.25s ease,
    right 0.25s ease,
    opacity 0.25s ease;
}

.nav-menu > li.current > a,
.nav-menu > li.current > a:hover {
  color: #fff;
  font-weight: 700;
  background: linear-gradient(
    180deg,
    rgba(129, 182, 207, 0.38) 0%,
    rgba(9, 67, 105, 0.5) 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 2px 8px rgba(7, 52, 111, 0.2);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.16);
}

.nav-menu > li.current > a::after {
  right: 16px;
  left: 16px;
  opacity: 1;
}

/* Dropdown Submenu */
.nav-menu li .submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: var(--ref-white);
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 20px var(--ref-shadow-hover);
  display: none;
  z-index: 101;
  overflow: hidden;
}

.nav-menu li:hover .submenu {
  display: block;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav-menu li .submenu a {
  display: block;
  padding: 12px 20px;
  color: var(--ref-text);
  font-size: 14px;
  font-weight: 400;
  border-bottom: 1px solid #e5ebee;
  transition: all 0.2s ease;
}

.nav-menu li .submenu a:last-child {
  border-bottom: none;
}

.nav-menu li .submenu a:hover {
  background: var(--ref-primary-light);
  color: var(--ref-primary);
  padding-left: 25px;
}

/* ============================================
   Main Body Layout
   ============================================ */
.main-body {
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 20px;
  display: flex;
  gap: 25px;
}

/* Left Sidebar */
.sidebar-left {
  width: 260px;
  flex-shrink: 0;
}

/* Right Sidebar */
.sidebar-right {
  width: 300px;
  flex-shrink: 0;
}

.sidebar-box {
  border: 1px solid var(--ref-border);
  margin-bottom: 27px;
  background: var(--ref-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px var(--ref-shadow);
  transition: box-shadow 0.3s ease;
}

.sidebar-box:hover {
  box-shadow: 0 4px 12px var(--ref-shadow);
}

.sidebar-box .box-title {
  background: linear-gradient(135deg, #f8fafb 0%, #e2e8eb 100%);
  border-left: 4px solid var(--ref-secondary);
  border-bottom: 1px solid var(--ref-border);
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ref-primary);
}

/* News list in sidebar */
.sidebar-news-list {
  padding: 10px 15px;
}

.sidebar-news-list dt {
  font-size: 12px;
  color: var(--ref-text-light);
  line-height: 18px;
  margin-top: 8px;
}

.sidebar-news-list dd {
  margin: 0;
  line-height: 28px;
  border-bottom: 1px dotted #d9e2e6;
  font-size: 13px;
}

.sidebar-news-list dd:last-child {
  border-bottom: none;
}

.sidebar-news-list dd a {
  color: var(--ref-text);
  display: block;
  padding: 5px 0;
  transition: all 0.2s ease;
}

.sidebar-news-list dd a:hover {
  color: var(--ref-primary);
  padding-left: 5px;
}

/* Pinned news stays visually distinct in every "Latest News" list. */
.sidebar-news-list dd a.is-top-news,
.sidebar-news-list dd a.is-top-news:hover,
.article-list td.title a.is-top-news,
.article-list td.title a.is-top-news:hover {
  color: var(--ref-accent);
  font-weight: 600;
}

/* Search box */
.search-box {
  padding: 15px;
}

.search-box form {
  display: flex;
  gap: 8px;
}

.search-box input[type="text"] {
  flex: 1;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--ref-border);
  border-radius: 6px;
  font-size: 13px;
  transition: all 0.2s ease;
}

.search-box input[type="text"]:focus {
  outline: none;
  border-color: var(--ref-primary);
  box-shadow: 0 0 0 3px rgba(23, 107, 158, 0.12);
}

.search-box input[type="submit"] {
  height: 38px;
  padding: 0 16px;
  background: var(--ref-primary);
  border: none;
  border-radius: 6px;
  color: var(--ref-white);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.search-box input[type="submit"]:hover {
  background: var(--ref-primary-dark);
}

/* Main Content Area */
.main-content {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--ref-border);
  background: var(--ref-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px var(--ref-shadow);
}

/* Breadcrumb */
.breadcrumb {
  padding: 12px 20px;
  background: var(--ref-bg);
  border-bottom: 1px solid var(--ref-border);
  font-size: 13px;
  color: var(--ref-text-light);
}

.breadcrumb a {
  color: var(--ref-text-light);
}

.breadcrumb a:hover {
  color: var(--ref-primary);
}

/* Article List */
.article-list {
  padding: 20px 50px;
}

.article-list table {
  width: 100%;
  border-collapse: collapse;
}

.article-list td {
  line-height: 42px;
  border-bottom: 1px solid #e5ebee;
  font-size: 14px;
}

.article-list td.title {
  width: 85%;
}

.article-list td.title a {
  color: var(--ref-text);
  transition: color 0.2s ease;
}

.article-list td.title a:hover {
  color: var(--ref-primary);
}

.article-list td.date {
  width: 15%;
  text-align: right;
  font-size: 13px;
  color: var(--ref-text-light);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Pagination */
.pagination {
  padding: 20px;
  text-align: center;
  font-size: 13px;
}

.pagination a {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid var(--ref-border);
  margin: 0 3px;
  color: var(--ref-text);
  border-radius: 6px;
  transition: all 0.2s ease;
}

.pagination a:hover,
.pagination a.current {
  background: var(--ref-primary);
  border-color: var(--ref-primary);
  color: var(--ref-white);
  text-decoration: none;
}

/* Content Page */
.page-content {
  padding: 25px 50px;
  font-size: 14px;
  line-height: 1.8;
}

.page-content p {
  margin: 10px 0;
}

/* Article content - justify text */
.article-content p {
  text-align: justify;
  text-justify: inter-ideograph;
}

.page-content h1,
.page-content h2,
.page-content h3 {
  color: var(--ref-primary);
  margin: 18px 0 12px;
}

/* ============================================
   Query Form (用稿通知查询)
   ============================================ */
.query-section {
  padding: 25px;
}

.query-form {
  border: none;
  background: var(--ref-white);
  border-radius: 12px;
}

.query-form .form-group {
  display: flex;
  align-items: center;
  margin-bottom: 18px;
  padding: 12px 0;
}

.query-form label {
  width: 120px;
  text-align: right;
  padding-right: 18px;
  font-size: 14px;
  color: var(--ref-text);
  font-weight: 500;
}

.query-form input[type="text"] {
  flex: 1;
  max-width: 280px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--ref-border);
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.2s ease;
}

.query-form input[type="text"]:focus,
.query-form input[type="email"]:focus {
  outline: none;
  border-color: var(--ref-primary);
  box-shadow: 0 0 0 3px rgba(23, 107, 158, 0.12);
}

.query-section input[type="text"]:focus {
  outline: none;
  border-color: var(--ref-primary);
  box-shadow: 0 0 0 3px rgba(23, 107, 158, 0.12);
}

.query-form input[type="submit"] {
  height: 44px;
  padding: 0 32px;
  background: linear-gradient(
    135deg,
    var(--ref-primary) 0%,
    var(--ref-primary-dark) 100%
  );
  border: none;
  border-radius: 8px;
  color: var(--ref-white);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(23, 107, 158, 0.28);
}

.query-form input[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(23, 107, 158, 0.38);
}

/* Query Result Modal */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  backdrop-filter: blur(2px);
}

.modal-box {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 420px;
  background: var(--ref-white);
  border-radius: 16px;
  z-index: 1001;
  padding: 30px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.modal-box h3 {
  text-align: center;
  color: var(--ref-primary);
  font-size: 20px;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--ref-primary-light);
}

.modal-box p {
  line-height: 1.8;
  font-size: 15px;
  color: var(--ref-text);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 18px;
  font-size: 24px;
  cursor: pointer;
  color: var(--ref-text-light);
  transition: color 0.2s ease;
}

.modal-close:hover {
  color: var(--ref-accent);
}

/* ============================================
   Contact Info
   ============================================ */
.contact-info {
  padding: 20px;
  font-size: 14px;
  line-height: 1.8;
}

.contact-info p {
  margin: 10px 0;
}

/* ============================================
   Guestbook Form
   ============================================ */
.guestbook-form {
  padding: 25px;
}

.guestbook-form table {
  width: 100%;
}

.guestbook-form td {
  padding: 10px 0;
  font-size: 14px;
}

.guestbook-form input[type="text"],
.guestbook-form input[type="email"],
.guestbook-form textarea {
  width: 100%;
  max-width: 400px;
  padding: 12px;
  border: 1px solid var(--ref-border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s ease;
}

.guestbook-form input[type="text"]:focus,
.guestbook-form input[type="email"]:focus,
.guestbook-form textarea:focus {
  outline: none;
  border-color: var(--ref-primary);
  box-shadow: 0 0 0 3px rgba(23, 107, 158, 0.12);
}

.guestbook-form textarea {
  height: 120px;
  resize: vertical;
}

.guestbook-form input[type="submit"] {
  padding: 12px 28px;
  background: linear-gradient(
    135deg,
    var(--ref-primary) 0%,
    var(--ref-primary-dark) 100%
  );
  border: none;
  border-radius: 8px;
  color: var(--ref-white);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(23, 107, 158, 0.28);
}

.guestbook-form input[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(23, 107, 158, 0.38);
}

/* ============================================
   Footer
   ============================================ */
.footer {
  width: 100%;
  padding: 25px 0;
  background: linear-gradient(135deg, #43525c 0%, #273941 100%);
  text-align: center;
  font-size: 13px;
  color: #aab2bd;
  margin-top: 30px;
}

.footer a {
  color: #aab2bd;
}

.footer a:hover {
  color: var(--ref-white);
}

/* ============================================
   Modern Card Style
   ============================================ */
.modern-card {
  background: var(--ref-white);
  border-radius: 12px;
  box-shadow: 0 1px 3px var(--ref-shadow);
  transition: all 0.3s ease;
  overflow: hidden;
}

.modern-card:hover {
  box-shadow: 0 8px 25px var(--ref-shadow-hover);
  transform: translateY(-2px);
}

/* ============================================
   Modern Button
   ============================================ */
.modern-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  background: linear-gradient(
    135deg,
    var(--ref-primary) 0%,
    var(--ref-primary-dark) 100%
  );
  border: none;
  border-radius: 8px;
  color: var(--ref-white);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(23, 107, 158, 0.28);
}

.modern-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(23, 107, 158, 0.38);
  color: var(--ref-white);
}

/* ============================================
   Info Box
   ============================================ */
.info-box {
  background: var(--ref-primary-light);
  border-left: 4px solid var(--ref-primary);
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin: 15px 0;
}

.info-box h4 {
  color: var(--ref-primary);
  margin: 0 0 8px 0;
  font-size: 15px;
}

.info-box p {
  margin: 0;
  font-size: 13px;
  color: var(--ref-text);
}

/* ============================================
   Utility Classes
   ============================================ */
.text-primary {
  color: var(--ref-primary);
}
.text-success {
  color: var(--ref-success);
}
.text-light {
  color: var(--ref-text-light);
}
.bg-light {
  background: var(--ref-primary-light);
}
.border-primary {
  border-color: var(--ref-primary);
}

/* Semantic theme hooks used by the article, account and journal pages. */
.bg-primary {
  background-color: var(--ref-primary);
}
.bg-secondary {
  background-color: var(--ref-secondary);
}
.bg-accent {
  background-color: var(--ref-accent);
}
.text-accent {
  color: var(--ref-accent);
}
.border-accent {
  border-color: var(--ref-accent);
}
.flat-card {
  background: var(--ref-white);
  border: 1px solid var(--ref-border);
  border-radius: 12px;
  box-shadow: 0 1px 3px var(--ref-shadow);
}
.rounded-button {
  border-radius: 6px;
}
.hover\\:bg-secondary:hover {
  background-color: var(--ref-secondary);
}
.hover\\:bg-accent-hover:hover {
  background-color: var(--ref-accent-dark);
}
.hover\\:text-primary:hover {
  color: var(--ref-primary);
}
.hover\\:text-secondary:hover {
  color: var(--ref-secondary);
}
.hover\\:text-accent:hover {
  color: var(--ref-accent);
}
.focus\\:border-primary:focus {
  border-color: var(--ref-primary);
}
.focus\\:ring-primary:focus {
  box-shadow: 0 0 0 3px rgba(23, 107, 158, 0.18);
}

.mt-10 {
  margin-top: 10px;
}
.mb-10 {
  margin-bottom: 10px;
}
.p-10 {
  padding: 10px;
}

/* Clear float */
.clearfix::after {
  content: " ";
  display: block;
  clear: both;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
  .header-top {
    min-height: 160px;
    height: 42vw;
    max-height: 190px;
    background-position: 10% center;
  }

  .header-top::before {
    background: linear-gradient(
      90deg,
      rgba(8, 53, 74, 0.76) 0%,
      rgba(12, 79, 105, 0.42) 58%,
      rgba(12, 86, 112, 0.08) 100%
    );
  }

  .site-title {
    left: 5vw;
    max-width: 92vw;
    padding-left: 18px;
  }

  .site-title::before {
    width: 3px;
  }

  .site-title__cn {
    font-size: clamp(36px, 10vw, 52px);
    letter-spacing: 0.08em;
  }

  .site-title__en {
    margin-top: 8px;
    padding-top: 6px;
    font-size: clamp(9px, 2.8vw, 13px);
    letter-spacing: 0.14em;
  }

  .main-body {
    flex-direction: column;
  }

  .sidebar-left {
    width: 100%;
  }

  .nav-menu > li > a {
    padding: 0 15px;
    font-size: 14px;
  }
}
