html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans SC', sans-serif;
  background-color: #ffffff;
  color: #1E293B;
}

.glass-nav {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.hero-gradient {
  background: radial-gradient(circle at top right, #EFF6FF 0%, #FFFFFF 50%);
}

.news-hero-gradient {
  background: linear-gradient(135deg, #0F172A 0%, #1E3A8A 100%);
  position: relative;
}

.news-hero-gradient::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1);
  transition: all 0.3s ease;
}

.btn-shadow {
  box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
}

.mobile-menu {
  display: none;
}

.mobile-menu.active {
  display: flex;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 自定义滚动条美化 */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* 文章内容排版（详情页） */
.prose {
  max-width: 100%;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4,
.prose h5,
.prose h6 {
  font-weight: 700;
  color: #0f172a;
  margin-top: 1.5em;
  margin-bottom: 0.75em;
}

.prose p {
  margin-top: 0.75em;
  margin-bottom: 0.75em;
  color: #1f2933;
}

.prose a {
  color: #2563EB;
  text-decoration: underline;
}

.prose ul,
.prose ol {
  padding-left: 1.5rem;
  margin-top: 0.75em;
  margin-bottom: 0.75em;
}

.prose li {
  margin-top: 0.25em;
  margin-bottom: 0.25em;
}

.form-alert {
  padding: 0.875rem 1rem;
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #b91c1c;
  border-radius: 1rem;
  font-size: 0.95rem;
}

.form-success {
  padding: 1rem 1.125rem;
  border: 1px solid #bbf7d0;
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfeff 100%);
  color: #166534;
  border-radius: 1rem;
  font-size: 0.95rem;
  box-shadow: 0 10px 25px -15px rgba(34, 197, 94, 0.45);
}

.form-success-title {
  display: block;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.form-success-desc {
  color: #15803d;
}

.form-error {
  line-height: 1.4;
}

.form-input-error {
  border-color: #ef4444 !important;
  background: #fff1f2 !important;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.12);
}

.video-player-shell {
  position: relative;
  max-width: 80rem;
  margin: 0 auto;
  border-radius: 2rem;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(30, 58, 138, 0.14);
  border: 1px solid #e2e8f0;
  background: #ffffff;
}

.video-poster-layer {
  position: relative;
  cursor: pointer;
}

.video-poster-image {
  width: 100%;
  height: 300px;
  display: block;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.video-poster-layer:hover .video-poster-image {
  transform: scale(1.05);
}

.video-poster-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.2), transparent);
}

.video-play-button {
  width: 5rem;
  height: 5rem;
  margin-bottom: 1.5rem;
  padding-left: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  color: #2563eb;
  box-shadow: 0 20px 30px -12px rgba(37, 99, 235, 0.35);
  transition: transform 0.25s ease;
}

.video-poster-layer:hover .video-play-button {
  transform: scale(1.08);
}

.video-player-shell video {
  width: 100%;
  height: 300px;
  display: block;
  background: #000000;
  object-fit: cover;
}

@media (min-width: 768px) {
  .video-poster-image,
  .video-player-shell video {
    height: 450px;
  }

  .video-play-button {
    width: 6rem;
    height: 6rem;
  }
}

@media (min-width: 1024px) {
  .video-poster-image,
  .video-player-shell video {
    height: 550px;
  }
}

