* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

a[href="test.html"]:not(.console-link-unlocked),
a[href="collect.html"]:not(.console-link-unlocked),
a[data-console-link]:not(.console-link-unlocked) {
  opacity: 0.6 !important;
  pointer-events: none !important;
  cursor: not-allowed !important;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #ffffff;
  padding-top: 70px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0.625rem 0.9375rem;
  z-index: 9999;
  border-bottom: 1px solid #eeeeee;
  flex-wrap: wrap;
}

.logo {
  font-weight: bold;
  display: inline-flex;
  text-align: center;
  align-items: center;
  padding: 0.625rem 1.5rem;
  color: #333333;
  text-decoration: none;
  margin: 0 0.375rem;
  font-size: 1.2rem;
  white-space: nowrap;
}

.logo img {
  width: 3.125rem;
  height: auto;
  max-height: 3.125rem;
  object-fit: contain;
}

.nav-links {
  display: flex;
  margin-left: 1.875rem;
  gap: 1.25rem;
}

.nav-right {
  display: flex;
  margin-left: auto;
  gap: 1.25rem;
}

.navbar .nav-links a,
.navbar .nav-right a {
  display: flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  color: #333333;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.3s ease;
  font-size: 1.2rem;
  font-weight: 500;
}

.navbar .nav-links a:hover,
.navbar .nav-right a:hover {
  color: #666666;
}

.nav-right a:last-child {
  margin-right: 1.875rem;
}

.content {
  flex: 1;
  padding: 0;
  max-width: 100%;
  margin: 0 auto;
  width: 100%;
}

.hero-section {
  position: relative;
  width: 100vw;
  min-height: 70vh;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  display: flex;
  align-items: flex-end;
  padding: 0;
  margin: 0 0 2rem 0;
  overflow: hidden;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.1));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 4rem 2rem;
  color: white;
  text-align: left;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: #fff;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  font-weight: 800;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 10);
  max-width: 900px;
  letter-spacing: -0.02em;
}

.hero-text {
  font-size: clamp(1.1rem, 2.8vw, 1.5rem);
  line-height: 1.7;
  color: #fff;
  margin-bottom: 1rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  max-width: 800px;
}

.main-article {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem 2rem;
}

.article-subtitle {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  color: #333;
  margin: 2.5rem 0 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #f0f0f0;
  font-weight: 600;
}

.article-section-title {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  color: #444;
  margin: 2rem 0 1rem;
  font-weight: 600;
}

.article-paragraph {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 1.5rem;
  text-align: justify;
}

.article-image {
  margin: 2rem auto;
  text-align: center;
  max-width: 100%;
}

.responsive-img {
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: block;
}

.article-image figcaption {
  font-size: 0.95rem;
  color: #777;
  margin-top: 0.5rem;
  font-style: italic;
  line-height: 1.4;
}

.footer-section {
  background-color: #333;
  color: #ccc;
  width: 100%;
  padding: 1.875rem 1.25rem;
  margin-top: auto;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 0.9375rem;
  flex-wrap: wrap;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.footer-links a {
  color: #ccc;
  text-decoration: none;
  font-size: 0.875rem;
  padding: 0.25rem 0.5rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-info {
  text-align: center;
  font-size: 0.75rem;
  line-height: 1.8;
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.25rem;
}

.footer-info a {
  color: #ccc;
  text-decoration: none;
}

.footer-info a:hover {
  color: #fff;
  text-decoration: underline;
}

.notice-board {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 10px;
  padding: 1.5rem;
  margin: 0 auto 2rem auto;
  max-width: 800px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

.notice-board::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(to bottom, #007bff, #0056b3);
}

.notice-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #e9ecef;
}

.notice-title {
  font-size: 1.5rem;
  color: #333;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.notice-title::before {
  content: '📢';
  font-size: 1.3rem;
}

.notice-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.notice-item {
  padding: 0.75rem 0;
  border-bottom: 1px solid #eee;
  transition: all 0.2s ease;
}

.notice-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.notice-item:hover {
  background-color: rgba(0, 123, 255, 0.05);
  border-radius: 6px;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.notice-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #333;
  font-size: 1.05rem;
  line-height: 1.5;
}

.notice-link:hover {
  color: #007bff;
}

.notice-dot {
  width: 8px;
  height: 8px;
  background-color: #007bff;
  border-radius: 50%;
  margin-right: 0.75rem;
  flex-shrink: 0;
}

.notice-text {
  flex: 1;
  font-weight: 500;
}

.notice-date {
  font-size: 0.85rem;
  color: #6c757d;
  margin-left: 1rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.new-badge {
  background-color: #dc3545;
  color: white;
  font-size: 0.7rem;
  padding: 0.15rem 0.4rem;
  border-radius: 10px;
  margin-left: 0.5rem;
  font-weight: 600;
}

.no-notices {
  text-align: center;
  color: #6c757d;
  padding: 1.5rem;
  font-style: italic;
}

.notice-more-link {
  font-size: 0.9rem;
  color: #007bff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.notice-more-link:hover {
  color: #0056b3;
  text-decoration: underline;
}

.loading-notice {
  opacity: 0.6;
  font-style: italic;
}

.pinned-notice {
  background-color: rgba(255, 193, 7, 0.1);
  border-left: 4px solid #ffc107;
  border-radius: 0 6px 6px 0;
}

.pinned-notice .notice-link {
  font-weight: 600;
}

.pinned-icon {
  font-size: 1rem;
  margin-right: 0.75rem;
  color: #ffc107;
}

.new-count-badge {
  background-color: #dc3545;
  color: white;
  font-size: 0.8rem;
  padding: 0.15rem 0.5rem;
  border-radius: 12px;
  margin-left: 0.75rem;
  font-weight: 600;
  vertical-align: middle;
  transition: opacity 1s ease;
}

.notice-detail-container {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

.notice-detail {
  background: white;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.notice-detail-header {
  border-bottom: 2px solid #007bff;
  padding-bottom: 1rem;
  margin-bottom: 2rem;
}

.notice-detail-title {
  color: #333;
  margin-bottom: 0.5rem;
  font-size: 1.8rem;
}

.notice-detail-meta {
  color: #6c757d;
  font-size: 0.9rem;
  display: flex;
  gap: 1rem;
}

.notice-detail-content {
  line-height: 1.8;
  color: #555;
  font-size: 1.05rem;
}

.notice-detail-content p {
  margin-bottom: 1.5rem;
}

.notice-back-button {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.6rem 1.5rem;
  background: #007bff;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 500;
  transition: background 0.3s ease;
}

.notice-back-button:hover {
  background: #0056b3;
}

.responsive-img {
  background-color: #f5f5f5;
  transition: opacity 0.3s ease;
}

.responsive-img.loaded {
  opacity: 1;
}

@media screen and (max-width: 768px) {
  body {
    padding-top: 60px;
  }
  
  .navbar {
    padding: 0.5rem 0.75rem;
    flex-wrap: nowrap;
  }
  
  .logo {
    padding: 0.5rem 1rem;
    font-size: 1.1rem;
  }
  
  .logo img {
    width: 2.5rem;
    max-height: 2.5rem;
  }
  
  .nav-links {
    margin-left: 1rem;
    gap: 0.75rem;
  }
  
  .nav-right {
    gap: 0.75rem;
  }
  
  .navbar .nav-links a,
  .navbar .nav-right a {
    padding: 0.375rem 0.625rem;
    font-size: 1.2rem;
  }
  
  .nav-right a:last-child {
    margin-right: 1rem;
  }
  
  .hero-section {
    min-height: 60vh;
    margin-left: -50vw;
    margin-right: -50vw;
  }
  
  .hero-content {
    padding: 3rem 1.5rem;
  }
  
  .hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
  }
  
  .hero-text {
    font-size: clamp(0.95rem, 2vw, 1.2rem);
    line-height: 1.6;
  }
  
  .main-article {
    padding: 0 1.5rem 1.5rem;
  }
  
  .article-subtitle {
    margin: 2rem 0 1.25rem;
  }
  
  .article-section-title {
    margin: 1.75rem 0 0.875rem;
  }
  
  .article-paragraph {
    font-size: 1.0625rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
  }
  
  .article-image {
    margin: 1.75rem auto;
  }
  
  .responsive-img {
    border-radius: 6px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
  }
  
  .article-image figcaption {
    font-size: 0.9rem;
  }
  
  .footer-links {
    gap: 1rem;
  }
  
  .footer-links a {
    font-size: 0.85rem;
  }
  
  .notice-board {
    margin: 0 1.5rem 1.5rem 1.5rem;
    padding: 1.25rem;
    border-radius: 8px;
  }
  
  .notice-title {
    font-size: 1.3rem;
  }
  
  .notice-link {
    font-size: 1rem;
    flex-wrap: wrap;
  }
  
  .notice-text {
    width: 100%;
    margin-bottom: 0.25rem;
  }
  
  .notice-date {
    margin-left: 1.5rem;
    font-size: 0.8rem;
  }
  
  .notice-board::before {
    width: 4px;
  }
  
  .notice-detail {
    padding: 1.5rem;
  }
  
  .notice-detail-title {
    font-size: 1.5rem;
  }
  
  .pinned-notice {
    border-left-width: 3px;
  }
  
  .pinned-icon {
    font-size: 0.9rem;
    margin-right: 0.5rem;
  }
  
  .new-count-badge {
    font-size: 0.7rem;
    padding: 0.1rem 0.4rem;
  }
  
  .notice-more-link {
    font-size: 0.85rem;
  }
}

@media screen and (max-width: 480px) {
  html {
    font-size: 14px;
  }
  
  body {
    padding-top: 55px;
  }
  
  .navbar {
    flex-wrap: wrap;
    padding: 0.375rem 0.5rem;
  }
  
  .logo {
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    margin: 0 auto;
    width: 100%;
    justify-content: center;
  }
  
  .logo img {
    width: 2.25rem;
    max-height: 2.25rem;
  }
  
  .nav-links,
  .nav-right {
    margin-left: 0;
    justify-content: center;
    width: 100%;
    margin-top: 0.5rem;
    gap: 0.5rem;
  }
  
  .navbar .nav-links a,
  .navbar .nav-right a {
    padding: 0.5rem;
    font-size: 1.0rem;
  }
  
  .nav-right a:last-child {
    margin-right: 0;
  }
  
  .hero-section {
    min-height: 50vh;
    padding: 1rem;
  }
  
  .hero-content {
    padding: 1rem;
  }
  
  .hero-title {
    font-size: clamp(1.5rem, 5vw, 2.2rem);
    margin-bottom: 0.75rem;
  }
  
  .hero-text {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    line-height: 1.5;
  }
  
  .main-article {
    padding: 0 1rem 1rem;
  }
  
  .article-subtitle {
    font-size: clamp(1.3rem, 4.5vw, 1.9rem);
    margin: 1.75rem 0 1rem;
    border-bottom-width: 1px;
  }
  
  .article-section-title {
    font-size: clamp(1.1rem, 3.5vw, 1.5rem);
    margin: 1.5rem 0 0.75rem;
  }
  
  .article-paragraph {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    text-align: left;
  }
  
  .article-image {
    margin: 1.5rem auto;
  }
  
  .responsive-img {
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  }
  
  .article-image figcaption {
    font-size: 0.85rem;
    padding: 0 0.5rem;
  }
  
  .footer-section {
    padding: 1.5rem 0.75rem;
  }
  
  .footer-links {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }
  
  .footer-links a {
    font-size: 0.8rem;
    text-align: center;
    width: 100%;
  }
  
  .footer-info {
    font-size: 0.7rem;
  }
  
  .notice-board {
    margin: 0 1rem 1.5rem 1rem;
    padding: 1rem;
  }
  
  .notice-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .notice-title {
    font-size: 1.2rem;
  }
  
  .notice-link {
    font-size: 0.95rem;
  }
  
  .notice-dot {
    width: 6px;
    height: 6px;
    margin-right: 0.5rem;
  }
  
  .notice-date {
    font-size: 0.75rem;
    margin-left: 1.5rem;
  }
  
  .new-badge {
    font-size: 0.65rem;
    padding: 0.1rem 0.3rem;
  }
  
  .notice-detail-container {
    padding: 0 1rem;
    margin: 1rem auto;
  }
  
  .notice-detail {
    padding: 1rem;
  }
  
  .notice-detail-title {
    font-size: 1.3rem;
  }
  
  .pinned-notice {
    border-left-width: 2px;
  }
  
  .pinned-icon {
    font-size: 0.85rem;
    margin-right: 0.4rem;
  }
  
  .new-count-badge {
    font-size: 0.65rem;
    padding: 0.08rem 0.3rem;
  }
  
  .notice-more-link {
    font-size: 0.8rem;
  }
}

@media screen and (max-width: 360px) {
  .hero-section {
    min-height: 45vh;
  }
  
  .hero-title {
    font-size: clamp(1.3rem, 4vw, 1.8rem);
  }
  
  .hero-text {
    font-size: 0.85rem;
    line-height: 1.4;
  }
  
  .article-paragraph {
    font-size: 0.9375rem;
    line-height: 1.5;
  }
  
  .article-image figcaption {
    font-size: 0.8rem;
  }
}

@media screen and (min-width: 1200px) {
  .hero-section {
    min-height: 80vh;
    padding: 3rem;
  }
  
  .hero-content {
    padding: 3rem;
  }
  
  .main-article {
    max-width: 900px;
    padding: 0 3rem 3rem;
  }
  
  .article-paragraph {
    font-size: 1.1875rem;
    line-height: 1.9;
  }
  
  .footer-section {
    padding: 2.5rem 3rem;
  }
}

@media screen and (min-width: 1600px) {
  .content,
  .footer-links,
  .footer-info {
    max-width: 1400px;
  }
  
  .main-article {
    max-width: 1000px;
  }
  
  .article-paragraph {
    font-size: 1.25rem;
    line-height: 2;
  }
}

@media screen and (max-width: 480px) {
  .hide-on-mobile {
    display: none !important;
  }
}

@media screen and (min-width: 481px) {
  .hide-on-desktop {
    display: none !important;
  }
}

@media print {
  .hero-section {
    min-height: auto;
    background: none !important;
    color: #000;
  }
  
  .hero-section::before {
    display: none;
  }
  
  .hero-title,
  .hero-text {
    color: #000 !important;
    text-shadow: none !important;
  }
  
  .article-title,
  .article-subtitle,
  .article-section-title {
    color: #000;
  }
  
  .article-paragraph {
    color: #333;
  }
  
  .responsive-img {
    box-shadow: none;
    border: 1px solid #ddd;
  }
  
  .article-image figcaption {
    color: #555;
  }
}

body.accessibility-mode {
  font-size: 18px !important;
  line-height: 2 !important;
  color: #000000 !important;
  background-color: #ffffff !important;
  --text-color: #000000;
  --bg-color: #ffffff;
  --primary-color: #0047AB;
  --secondary-color: #0056B3;
  --focus-color: #FF6B00;
  --link-color: #003366;
  font-weight: 500 !important;
}

.accessibility-mode .navbar,
.accessibility-mode .content,
.accessibility-mode .main-article,
.accessibility-mode .notice-board,
.accessibility-mode .notice-detail,
.accessibility-mode .footer-section {
  background-color: var(--bg-color) !important;
  color: var(--text-color) !important;
}

.accessibility-mode h1,
.accessibility-mode h2,
.accessibility-mode h3,
.accessibility-mode h4,
.accessibility-mode p,
.accessibility-mode .logo,
.accessibility-mode .nav-links a,
.accessibility-mode .nav-right a,
.accessibility-mode .article-subtitle,
.accessibility-mode .article-section-title,
.accessibility-mode .article-paragraph,
.accessibility-mode .notice-title,
.accessibility-mode .notice-link,
.accessibility-mode .notice-text,
.accessibility-mode .notice-detail-title,
.accessibility-mode .notice-detail-content,
.accessibility-mode .footer-links a,
.accessibility-mode .footer-info {
  color: var(--text-color) !important;
}

.accessibility-mode .hero-section {
  background: var(--bg-color) !important;
  color: var(--text-color) !important;
  min-height: auto !important;
  padding: 2rem !important;
  position: relative !important;
}

.accessibility-mode .hero-section::before {
  display: none !important;
}

.accessibility-mode .hero-content {
  color: var(--text-color) !important;
  background-color: var(--bg-color) !important;
  padding: 2rem !important;
  border: 3px solid var(--text-color) !important;
  border-radius: 8px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2) !important;
}

.accessibility-mode .hero-title,
.accessibility-mode .hero-text {
  color: var(--text-color) !important;
  text-shadow: none !important;
  font-weight: bold !important;
  line-height: 1.8 !important;
}

.accessibility-mode a:focus,
.accessibility-mode button:focus,
.accessibility-mode input:focus,
.accessibility-mode select:focus,
.accessibility-mode textarea:focus {
  outline: 4px solid var(--focus-color) !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 6px rgba(255, 107, 0, 0.3) !important;
  border-radius: 2px !important;
}

.accessibility-mode .btn:focus,
.accessibility-mode .notice-back-button:focus,
.accessibility-mode .notice-more-link:focus {
  outline: 4px solid var(--focus-color) !important;
  outline-offset: 4px !important;
}

.accessibility-mode * {
  animation-duration: 0.001s !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001s !important;
}

.accessibility-mode .navbar .nav-links a:hover,
.accessibility-mode .navbar .nav-right a:hover,
.accessibility-mode .notice-item:hover,
.accessibility-mode .notice-back-button:hover,
.accessibility-mode .notice-more-link:hover,
.accessibility-mode .footer-links a:hover {
  transform: none !important;
  box-shadow: none !important;
}

.accessibility-mode a:not(.btn):not(.logo):not(.notice-back-button) {
  text-decoration: underline !important;
  text-decoration-thickness: 2px !important;
  text-underline-offset: 4px !important;
}

.accessibility-mode a:not(.btn):not(.logo):not(.notice-back-button):hover,
.accessibility-mode a:not(.btn):not(.logo):not(.notice-back-button):focus {
  text-decoration-thickness: 4px !important;
  background-color: rgba(0, 71, 171, 0.1) !important;
}

.accessibility-mode .navbar {
  border-bottom: 3px solid var(--text-color) !important;
  padding: 1rem 0.9375rem !important;
}

.accessibility-mode .nav-links a,
.accessibility-mode .nav-right a {
  font-size: 1.3rem !important;
  padding: 0.75rem 1rem !important;
  border: 2px solid transparent !important;
  border-radius: 4px !important;
  margin: 0.125rem !important;
  min-height: 50px !important;
  min-width: 50px !important;
}

.accessibility-mode .logo {
  font-size: 1.4rem !important;
  border: 2px solid transparent !important;
}

.accessibility-mode .nav-links a:focus,
.accessibility-mode .nav-right a:focus,
.accessibility-mode .logo:focus {
  border: 2px solid var(--focus-color) !important;
  outline: 2px solid var(--focus-color) !important;
}

.accessibility-mode input,
.accessibility-mode select,
.accessibility-mode textarea,
.accessibility-mode button {
  border: 3px solid var(--text-color) !important;
  background-color: var(--bg-color) !important;
  color: var(--text-color) !important;
  font-size: 1.25rem !important;
  padding: 0.75rem !important;
  min-height: 44px !important;
  min-width: 44px !important;
}

.accessibility-mode .navbar {
  background-color: var(--bg-color) !important;
  border-bottom: 3px solid var(--text-color) !important;
}

.accessibility-mode .nav-links a,
.accessibility-mode .nav-right a {
  position: relative !important;
}

.accessibility-mode .responsive-img {
  border: 3px solid var(--text-color) !important;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2) !important;
}

.accessibility-mode .article-image figcaption {
  font-size: 1.1rem !important;
  color: var(--text-color) !important;
  font-weight: 500 !important;
  border: 2px solid var(--text-color) !important;
  padding: 0.5rem !important;
  background-color: rgba(0, 0, 0, 0.05) !important;
}

.accessibility-mode .navbar a,
.accessibility-mode .notice-link,
.accessibility-mode .notice-back-button,
.accessibility-mode .notice-more-link,
.accessibility-mode .footer-links a {
  min-height: 44px !important;
  min-width: 44px !important;
}

.accessibility-mode .nav-links a,
.accessibility-mode .nav-right a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.accessibility-mode .main-article,
.accessibility-mode .notice-detail-container {
  max-width: 70ch !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.accessibility-mode p,
.accessibility-mode li {
  margin-bottom: 1.5rem !important;
}

.accessibility-mode .notice-item {
  margin-bottom: 1.2rem !important;
  padding-left: 1.5rem !important;
  position: relative !important;
  border-bottom: 2px solid var(--text-color) !important;
}

.accessibility-mode .notice-board,
.accessibility-mode .notice-detail {
  border: 3px solid var(--text-color) !important;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2) !important;
}

.accessibility-mode .notice-board::before {
  background: var(--primary-color) !important;
  width: 8px !important;
}

.accessibility-mode .notice-board {
  background-color: var(--bg-color) !important;
}

.accessibility-mode .notice-title {
  color: var(--text-color) !important;
  font-weight: bold !important;
}

.accessibility-mode .notice-link {
  color: var(--text-color) !important;
  font-weight: 500 !important;
  font-size: 1.1rem !important;
}

.accessibility-mode .notice-link:hover {
  color: var(--text-color) !important;
  background-color: rgba(0, 0, 0, 0.05) !important;
  text-decoration: underline !important;
}

.accessibility-mode .notice-date {
  color: #333 !important;
  font-weight: 500 !important;
}

.accessibility-mode .new-badge,
.accessibility-mode .new-count-badge {
  background-color: #000 !important;
  color: #fff !important;
  font-weight: bold !important;
}

.accessibility-mode .pinned-notice {
  background-color: rgba(255, 193, 7, 0.2) !important;
  border-left: 4px solid #ffc107 !important;
}

.accessibility-mode .footer-section {
  background-color: var(--text-color) !important;
  color: var(--bg-color) !important;
  border-top: 5px solid var(--primary-color) !important;
}

.accessibility-mode .footer-links a,
.accessibility-mode .footer-info,
.accessibility-mode .footer-info a {
  color: var(--bg-color) !important;
}

.accessibility-mode .footer-links a:hover,
.accessibility-mode .footer-links a:focus {
  background-color: rgba(255, 255, 255, 0.2) !important;
  outline: 2px solid var(--bg-color) !important;
}

.accessibility-mode .footer-section {
  background-color: var(--text-color) !important;
  color: var(--bg-color) !important;
  border-top: 5px solid var(--primary-color) !important;
}

.accessibility-mode .footer-links p,
.accessibility-mode .footer-info,
.accessibility-mode .footer-info p {
  color: var(--bg-color) !important;
}

.accessibility-mode .footer-links p:hover,
.accessibility-mode .footer-links p:focus {
  background-color: rgba(255, 255, 255, 0.2) !important;
  outline: 2px solid var(--bg-color) !important;
}

.accessibility-mode .skip-nav {
  position: absolute !important;
  top: -50px !important;
  left: 10px !important;
  background-color: var(--primary-color) !important;
  color: white !important;
  padding: 12px !important;
  text-decoration: none !important;
  z-index: 10001 !important;
  border: 3px solid white !important;
}

.accessibility-mode .skip-nav:focus {
  top: 10px !important;
  outline: 4px solid var(--focus-color) !important;
}

.accessibility-mode [tabindex]:focus {
  outline: 4px solid var(--focus-color) !important;
  outline-offset: 4px !important;
  box-shadow: 0 0 0 8px rgba(255, 107, 0, 0.3) !important;
}

.accessibility-mode ::-webkit-scrollbar {
  width: 16px !important;
}

.accessibility-mode ::-webkit-scrollbar-track {
  background-color: var(--bg-color) !important;
  border: 2px solid var(--text-color) !important;
}

.accessibility-mode ::-webkit-scrollbar-thumb {
  background-color: var(--primary-color) !important;
  border: 3px solid var(--bg-color) !important;
  border-radius: 8px !important;
}

.accessibility-mode ::-webkit-scrollbar-thumb:hover {
  background-color: var(--secondary-color) !important;
}

@media screen and (max-width: 768px) {
  .accessibility-mode {
    font-size: 1.1rem !important;
  }
  
  .accessibility-mode .navbar {
    flex-wrap: wrap !important;
  }
  
  .accessibility-mode .nav-links,
  .accessibility-mode .nav-right {
    width: 100% !important;
    justify-content: center !important;
    margin-top: 1rem !important;
  }
  
  .accessibility-mode .nav-links a,
  .accessibility-mode .nav-right a {
    min-width: 44px !important;
    padding: 0.75rem !important;
  }
  
  .accessibility-mode .hero-section {
    padding: 1rem !important;
  }
  
  .accessibility-mode .hero-content {
    padding: 1.5rem !important;
  }
}

@media screen and (max-width: 480px) {
  .accessibility-mode .content,
  .accessibility-mode .main-article,
  .accessibility-mode .notice-detail-container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .accessibility-mode .nav-links a,
  .accessibility-mode .nav-right a {
    width: 100% !important;
    margin-bottom: 0.5rem !important;
    justify-content: center !important;
  }
  
  .accessibility-mode .hero-title {
    font-size: 1.5rem !important;
  }
  
  .accessibility-mode .hero-text {
    font-size: 1.1rem !important;
  }
}

@media print {
  .accessibility-mode * {
    color: #000000 !important;
    background-color: #ffffff !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  
  .accessibility-mode a {
    text-decoration: underline !important;
  }
  
  .accessibility-mode .navbar,
  .accessibility-mode .hero-section::before {
    display: none !important;
  }
  
  .accessibility-mode .content {
    max-width: 100% !important;
  }
}

.announcements-header {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eaeaea;
}

.announcements-header h1 {
    font-size: clamp(3.2rem, 5.2vw, 2.7rem);
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.announcements-header h1 i {
    color: #4a6cf7;
}

.subtitle {
    font-size: 1.4rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.search-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.5rem;
}

.search-box {
    display: flex;
    flex: 1;
    min-width: 300px;
    max-width: 500px;
}

.search-box input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px 0 0 8px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-box input:focus {
    border-color: #4a6cf7;
}

.search-box button {
    padding: 0.75rem 1.5rem;
    background-color: #4a6cf7;
    color: white;
    border: none;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-box button:hover {
    background-color: #3a5ce5;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.filter-label {
    font-weight: 500;
    color: #666;
    font-size: 0.95rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #666;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background-color: #eaeaea;
}

.filter-btn.active {
    background-color: #4a6cf7;
    color: white;
    border-color: #4a6cf7;
}

.announcements-container {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 2rem;
}

.announcements-list {
    padding: 0;
}

.announcement-item {
    padding: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.announcement-item:hover {
    background-color: #f9fafc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.announcement-item.pinned {
    background-color: #fff8e6;
    border-left: 4px solid #ffc107;
}

.announcement-item.pinned:hover {
    background-color: #fff5d9;
}

.announcement-icon {
    width: 50px;
    height: 50px;
    background-color: #eef2ff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4a6cf7;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.announcement-item.pinned .announcement-icon {
    background-color: #fff5d9;
    color: #ff9800;
}

.announcement-content {
    flex: 1;
}

.announcement-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.announcement-item a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.announcement-item a:hover .announcement-title {
    color: #4a6cf7;
}

.announcement-excerpt {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.announcement-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    color: #888;
    font-size: 1rem;
}

.announcement-date,
.announcement-id,
.announcement-category {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.announcement-item.pinned .announcement-meta {
    color: #b37c00;
}

.announcement-pinned-tag {
    background-color: #ffc107;
    color: #333;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-left: 0.5rem;
}

.empty-state {
    padding: 3rem 1.5rem;
    text-align: center;
    color: #888;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #ccc;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #666;
}

.pagination-container {
    padding: 1.5rem;
    border-top: 1px solid #eaeaea;
    background-color: #f9fafc;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.pagination-info {
    font-size: 0.95rem;
    color: #666;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background-color: white;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.pagination-btn:hover:not(:disabled) {
    background-color: #4a6cf7;
    color: white;
    border-color: #4a6cf7;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-numbers {
    display: flex;
    gap: 0.25rem;
}

.page-number {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background-color: white;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-weight: 500;
}

.page-number:hover:not(.active) {
    background-color: #f0f0f0;
}

.page-number.active {
    background-color: #4a6cf7;
    color: white;
    border-color: #4a6cf7;
}

.page-ellipsis {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.page-size-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.page-size-selector label {
    font-size: 0.95rem;
    color: #666;
}

.page-size-selector select {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: white;
    color: #333;
    outline: none;
    cursor: pointer;
}

.page-size-selector select:focus {
    border-color: #4a6cf7;
}

.pinned-notice {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background-color: #fff8e6;
    border-radius: 8px;
    color: #b37c00;
    font-size: 0.9rem;
    margin-top: 1rem;
}

.pinned-notice i {
    color: #ffc107;
}

.content {
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

.footer-section {
  width: 100vw !important;
  position: relative !important;
  left: 50% !important;
  right: 50% !important;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
}

body > .content {
  max-width: none !important;
}

html, body {
  overflow-x: hidden !important;
}

.announcements-container {
  border-radius: 0 !important;
  box-shadow: none !important;
  margin-bottom: 0 !important;
}

.bg-blue-animate-scroll {
  width: 100vw;
  height: 100vh;
  background: linear-gradient(90deg, #E3F2FD, #BBDEFB, #B3E5FC, #BBDEFB, #E3F2FD);
  background-size: 300% 100%;
  animation: blueScrollAnimate 15s ease-in-out infinite;
}

@keyframes blueScrollAnimate {
  0% {
    background-position: 0% 0%;
  }
  50% {
    background-position: 100% 0%;
  }
  100% {
    background-position: 0% 0%;
  }
}
html {
  overflow-x: hidden;
  overflow-y: auto;
}
body {
  overflow-x: hidden;
  overflow-y: auto;
}
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}
::-webkit-scrollbar-track {
  background: #f5f5f5;
  border-radius: 6px;
}
::-webkit-scrollbar-thumb {
  background: #dcdcdc;
  border-radius: 6px;
  border: 2px solid #f5f5f5;
}
::-webkit-scrollbar-thumb:hover {
  background: #c5c5c5; 
}
.navbar {
  width: calc(100%) !important; 
  right: 0 !important; 
  left: auto !important; 
}
@media screen and (max-width: 768px) {
  body {
    padding-right: 0 !important; 
  }
  .navbar {
    width: 100% !important; 
  }
  ::-webkit-scrollbar {
    display: none;
  }
  html, body {
    -ms-overflow-style: none; 
    scrollbar-width: none; 
  }
}
html {
  scrollbar-width: thin; 
  scrollbar-color: #dcdcdc #f5f5f5; 
}
#auth-initial-style{
  a[href="test.html"] {
    opacity: 0.3;
    pointer-events: none;
    cursor: not-allowed;
    transition: all 0.3s ease; 
  }
  a[href="test.html"].link-enabled,
  a[href="test.html"][style*="opacity: 1"] {
    opacity: 1 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
  }
  #loginLink::after {
    content: " (未登录)";
    font-size: 0.8em;
    color: #666;
  }
  #loginLink.user-logged-in::after {
    content: " ✓";
    color: #4CAF50;
    font-size: 1em;
  }
  }
  #beian img{
  	 width: 15px !important;
  	 height: auto !important;
  	 transform: translateY(0.1875rem) !important; 
  }
  #beian p{
  	 width: 15px !important;
  	 height: auto !important;
  	 transform: translateY(0.1875rem) !important; 
  }
  @media screen and (max-width: 768px) {
    .hero-text,
    .article-paragraph,
    .notice-detail-content p,
    .notice-text,
    .announcement-excerpt,
    .announcement-meta,
    .subtitle {
      font-size: 1.0625rem;
      line-height: 1.7;
      margin-bottom: 1.25rem;
    }
  }
  
  @media screen and (max-width: 480px) {
    .hero-text,
    .article-paragraph,
    .notice-detail-content p,
    .notice-text,
    .announcement-excerpt,
    .announcement-meta,
    .subtitle {
      font-size: 1rem;
      line-height: 1.6;
      margin-bottom: 1rem;
    }
  }
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .search-container,
  .announcements-container,
  .pagination-container {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
  }
  .search-container { animation-delay: 0.1s; }
  .announcements-container { animation-delay: 0.2s; }
  .pagination-container { animation-delay: 0.3s; }

  .announcements-header {
    opacity: 1;
    animation: none;
  }