:root {
  --main-font: 'Google Sans', 'Roboto', sans-serif;
  --primary-bg: #f9f9f9;
  --card-bg: rgba(255, 255, 255, 0.1);
  --accent-color: #2196F3;
  --text-primary: #000;
  --text-secondary: #666;
  --shadow-light: 0 2px 8px rgba(0,0,0,0.1);
  --shadow-heavy: 0 10px 30px rgba(0, 0, 0, 0.15);
  --border-radius: 20px;
  --transition: all 0.3s ease;
}

* {
  box-sizing: border-box;
}

body {
  font-family: var(--main-font);
  min-height: 100vh;
  margin: 0;
  background-color: var(--primary-bg);
  transition: background-color 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.loading-overlay {
  position: fixed;
  inset: 0;
  background-color: #e8e8e8;
  z-index: 9999;
  overflow: hidden;
}

.loading-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.skeleton-menu {
  position: fixed;
  top: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  background: #d0d0d0;
  padding: 15px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.skeleton-avatar {
  width: 70px;
  height: 70px;
  background: #c0c0c0;
  border-radius: 50%;
}

.skeleton-button {
  width: 80px;
  height: 50px;
  background: #c5c5c5;
  border-radius: 20px;
}

.skeleton-audio {
  width: 50px;
  height: 50px;
  background: #c5c5c5;
  border-radius: 50%;
}

.skeleton-back-btn {
  position: fixed;
  left: 20px;
  top: 140px;
  width: 50px;
  height: 40px;
  background: #d0d0d0;
  border-radius: 20px;
}

.skeleton-content {
  position: fixed;
  top: 120px;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  padding: 40px;
  background: #ffffff;
}

.skeleton-main-layout {
  display: flex;
  width: 100%;
  height: 100%;
  gap: 30px;
}

.skeleton-announcement {
  flex: 0 0 35%;
  background: #d8d8d8;
  border-radius: 20px;
}

.skeleton-all-articles {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.skeleton-article-card {
  background: #d8d8d8;
  border-radius: 20px;
}

.skeleton-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  animation: skeleton-shine 1.8s ease-in-out infinite;
}

@keyframes skeleton-shine {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.menu {
  width: auto;
  height: 100px;
  background-color: var(--card-bg);
  padding: 15px;
  transition: all 0.5s cubic-bezier(0.5, 0, 0, 1);
  position: fixed;
  border-radius: var(--border-radius);
  margin: 20px;
  box-shadow: var(--shadow-heavy);
  backdrop-filter: blur(10px);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 15px;
}

.floating-back-button {
  position: fixed;
  left: 20px;
  top: 140px;
  background-color: rgba(255, 0, 0, 0.5);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  padding: 10px 15px;
  font-size: 20px;
  cursor: pointer;
  transition: transform 0.3s ease, opacity 0.3s ease;
  box-shadow: 0 2px 8px rgba(255, 0, 0, 0.3);
  backdrop-filter: blur(5px);
  z-index: 2;
  opacity: 0;
  transform: translateX(-100px);
}

.floating-back-button:hover {
  background-color: rgba(255, 0, 0, 0.7);
  transform: translateX(5px) scale(1.05);
}

.floating-back-button.show {
  opacity: 1;
  transform: translateX(0);
}

.menu::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('https://bing.img.run/rand_1366x768.php');
  background-size: cover;
  background-position: center;
  opacity: 0.7;
  z-index: -1;
  border-radius: var(--border-radius);
}

.menu-item {
  font-family: var(--main-font);
  background-color: rgba(255, 255, 255, 0.3);
  color: var(--text-primary);
  border-radius: var(--border-radius);
  padding: 15px;
  margin: 5px;
  font-size: 16px;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  box-shadow: var(--shadow-light);
  backdrop-filter: blur(5px);
}

.menu-item:hover {
  background-color: #bbb;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.menu-item.selected {
  transform: translateY(5px) scale(1.05);
  background-color: var(--card-bg);
  font-weight: bold;
  padding: 15px 15px 15px 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.content {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
  background-color: #ffffff;
  transition: background-color 0.8s ease;
  width: 100%;
  height: 100vh;
  box-sizing: border-box;
  overflow-y: auto;
  z-index: 1;
}

.main-layout {
  display: flex;
  width: 100%;
  height: 100%;
  gap: 30px;
  padding: 20px;
}

.announcement-panel {
  flex: 0 0 35%;
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--shadow-light);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow-y: auto;
}

.announcement-panel h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--text-primary);
  font-weight: 400;
  border-bottom: 2px solid rgba(0, 0, 0, 0.1);
  padding-bottom: 15px;
}

.announcement-content {
  line-height: 1.8;
  color: var(--text-primary);
}

.announcement-content p {
  margin-bottom: 15px;
}

.articles-panel {
  flex: 1;
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--shadow-light);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow-y: auto;
}

.articles-panel h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--text-primary);
  font-weight: 400;
  border-bottom: 2px solid rgba(0, 0, 0, 0.1);
  padding-bottom: 15px;
}

.all-articles-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.article-item {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 20px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-light);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.article-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-heavy);
  background-color: rgba(255, 255, 255, 0.2);
}

.article-item h3,
.article-item h4 {
  font-size: 1.3rem;
  margin: 0 0 10px 0;
  color: var(--text-primary);
}

.article-date {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.no-articles {
  text-align: center;
  color: var(--text-secondary);
  font-style: italic;
  padding: 40px;
}

.article-detail-container {
  width: 100%;
  max-width: 900px;
  padding: 40px 20px;
  margin: 0 auto;
}

.article-header {
  margin-bottom: 30px;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 20px;
  text-align: center;
}

.article-header h2 {
  font-size: 2rem;
  color: var(--text-primary);
  margin: 0;
}

.article-content {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--shadow-light);
  backdrop-filter: blur(5px);
  line-height: 1.8;
}

.article-content h1 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  color: var(--text-primary);
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 15px;
}

.article-content p {
  margin-bottom: 15px;
  color: var(--text-primary);
}

.article-content b {
  color: #333;
  font-weight: 600;
}

@media (max-width: 768px) {
  .article-detail-container {
    padding: 20px 15px;
  }
  
  .article-content h1 {
    font-size: 1.8rem;
  }

  .main-layout {
    flex-direction: column;
  }

  .announcement-panel {
    flex: none;
    min-height: 200px;
  }

  .articles-panel {
    flex: 1;
  }
}

.content-item {
  display: none;
  width: 100%;
  height: 100%;
  padding-top: 20px;
}

.content-item.active {
  display: flex;
  flex-direction: column;
}

iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.audio-control-container {
  display: flex;
  align-items: center;
  margin-top: 10px;
  position: relative;
}

.audio-control {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  position: relative;
}

.audio-control::before {
  content: "▶";
  color: var(--text-primary);
  font-size: 30px;
}

.audio-control.playing::before { content: "❚❚"; }
.audio-control.paused::before { content: "▶"; }

.playback-status {
  color: black;
  font-size: 18px;
  text-align: left;
  position: absolute;
  left: 50%;
  white-space: nowrap;
  opacity: 0;
  width: auto;
  background-color: rgba(255, 255, 255);
  padding: 10px;
  border-radius: var(--border-radius);
  transition: transform 1s ease, opacity 1s ease;
}

.playback-status.show {
  opacity: 1;
  transform: translateX(100px);
}

.lyric-text {
  text-align: left;
  font-size: 16px;
  color: #000;
  white-space: nowrap;
  max-height: 25px;
  overflow: hidden;
}

.image-container {
  float: left;
  margin: 10px;
  padding: 10px;
  border: none;
  max-width: 40%;
}

.title-image {
  width: 50px;
  height: auto;
  display: block;
}

.mobile-menu-btn {
  display: none;
  position: fixed;
  top: 15px;
  left: 15px;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.3);
  border-radius: 40%;
  text-align: center;
  line-height: 43px;
  font-size: 20px;
  z-index: 9999;
  box-shadow: var(--shadow-light);
  cursor: pointer;
}

@media (max-width: 768px) {
  .mobile-menu-btn { display: block; }
  .menu { width: auto; }
  .menu.active { transform: translateX(-100%); }
  .title-image { width: 40px; }
  .audio-control { display: none; }
  .content { height: 100%; padding: 10px; }
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0px 20px;
}

.about-content p {
  margin-bottom: 20px;
  line-height: 1.8;
}

.contact-link {
  display: inline-block;
  padding: 10px 20px;
  margin: 5px;
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.contact-link:hover {
  background-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}