* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: Arial, sans-serif;
  background: #5a5a5a;
  color: #333;
  line-height: 1.6;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: #000000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 10;
}

#navigation{
	margin: 0 auto;
	background-color:rgb(0, 0, 0);
}

.nav{
	display:inline;
    text-align: center;
}

.nav a{
    text-decoration: none;
    font-size:x-large;
	color:rgb(0, 0, 0);
	padding:5px;
    background-color:rgb(191, 248, 141) ;
}

.nav a:hover{
	background-color:#ffffff;
}

/* Logo */
.logo img {
  height: 100px;
}

.logo a {
  display: inline-block;
  text-decoration: none;
}

/* Form on top-right */
.signup-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.signup-form label {
  font-size: 0.85rem;
}

.signup-form input {
  padding: 0.4rem;
  font-size: 0.9rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  width: 200px;
}

/* 保持容器宽度，自适应高度 */
.carousel-container {
    position: relative;
    width: 600px;
    max-width: 90%;
    margin: 2rem auto;
    overflow: hidden;
}

.carousel-container img {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    opacity: 0;
    animation: fade 12s infinite;
}
  
  /* 给每张图设置不同的延迟 */
.carousel-container img:nth-child(1) { animation-delay: 0s; }
.carousel-container img:nth-child(2) { animation-delay: 4s; }
.carousel-container img:nth-child(3) { animation-delay: 8s; }
  
  /* 淡入淡出 */
  @keyframes fade {
    0%   { opacity: 0; }
    8%   { opacity: 1; }
    33%  { opacity: 1; }
    41%  { opacity: 0; }
    100% { opacity: 0; }
}
  
.carousel-note {
    position: absolute;
    top: 10px;
    right: 10px;
    background: red;
    color: #fff;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    line-height: 1.3;
    max-width: 45%;
}
  
  /* 手机端自适应 */
  @media (max-width: 600px) {
    .carousel-container { width: 100%; }
    .carousel-note { max-width: 80%; font-size: 0.8rem; }
}

  /* ===== Content ===== */
.content {
    background-color: #fff;
    width: 80%;
    max-width: 800px;
    margin: 1.5rem auto;
    text-align: center;
    padding: 2rem;
    border: 1px solid #ccc;
    border-radius: 8px;
}

.content h2 {
    font-size: 1.8rem;
    font-weight: bold;
    color: #000;
    margin-bottom: 0.5rem;
}

.content .subtitle {
    color: rgb(166, 218, 122);
    font-size: 1rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.content .note-red {
    background: none;
    color: red;
    text-align: left;
    font-size: 0.9rem;
    margin: 1rem 0;
    line-height: 1.4;
}

.content .text-black {
    text-align: left;
    font-size: 0.9rem;
    line-height: 1.5;
}

.content .text-black a {
    color: #00457c;
    text-decoration: underline;
}

.site-footer {
    background: #000;
    color: #fff;
    padding: 2rem 0;
}

.footer-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 3rem;
}

.footer-item {
    text-align: center;
    line-height: 1.5;
    font-size: 0.9rem;
}

.site-footer a {
    color: #fff;
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

  /* ===== Responsive ===== */
  @media (max-width: 768px) {
    .carousel-note { max-width: 80%; font-size: 0.8rem; }
}

  @media (max-width: 600px) {
    header { flex-direction: column; align-items: flex-start; }
    .signup-form input, .signup-form button { width: 100%; }
}