* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f9f9f9;
  color: #333;
}

.title2{
  font-size: 38px;
  text-align: center;
  margin: 20px 0;
}

.header {
  background-color: #0a0a23;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  height: 50px;
}

img {
  transform: scale(1);
  transition: transform 0.3s ease; /* 平滑過渡 */
  border-radius: 20px; /* 圓角 */
}
img:hover {
  transform: scale(1.05); /* 鼠標懸停時放大 */
}

.nav a {
  color: white;
  margin-left: 20px;
  text-decoration: none;
  font-weight: 500;
}
#region {
  border: none;
  outline: none;
  border-radius: 8px;
  position: relative;
  overflow: hidden; /* 確保漸變不會超出圓角 */
  filter: brightness(100%);
  transition: filter 0.3s ease; /* 平滑過渡 */

  background: linear-gradient(90deg, #1e90ff, #00bfff); /* 從左到右漸變 */
  background-size: 200% 100%; /* 讓漸變範圍更大 */
  animation: gradientHover 1.5s ease infinite; /* 可選：動態流動效果 */
}
#region:hover {
  filter: brightness(80%);
}


.hero {
  width: 100%;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  height: 20vh;
  background: linear-gradient(90deg, #1e90ff, #00bfff); /* 從左到右漸變 */
  background-size: 200% 100%; /* 讓漸變範圍更大 */
  animation: gradientHover 5s ease infinite; /* 可選：動態流動效果 */
  color: white;
}


.paragraph {
  padding: 60px 20px;
  text-align: center;
}


.footer {
  text-align: center;
  padding: 20px;
  background-color: #244983;
  color: white;
  font-size: 14px;
  position: relative;
}
.footer a{
  color: white;
}
main{
    min-height: 100vh;
}



/*============控件=============*/
[btn]{
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  filter: brightness(100%);
  transform: scale(1);
  transition: filter 0.3s, transform 0.3s; /* 只過渡需要的屬性 */

  border: none;
  outline: none;
}
[btn]:hover {
  filter: brightness(80%);
}
[btn]:active {
  transform: scale(0.9); /* 縮小到 90% */
}
[btn="0"] {
  background-color: #fff;
  color: #007bff;
}
[btn="1"] {
  background-color: #007bff;
  color: #fff;
}



/* 輸入框樣式 */
input[type="text"] {
    padding: 10px;
    border: 2px solid #0b2636;
    border-radius: 20px;
    background-color: rgba(0, 0, 0, 0.5); /* 半透明背景 */
    color: white;
    font-family: sans-serif;
    font-weight: bold;
    font-size: 14px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    backdrop-filter: blur(5px); /* 毛玻璃效果 */
    box-shadow: 0 0 16px rgba(0, 0, 0, 0.5); /* 陰影效果 */
    width: 250px;
}

/* 輸入框獲得焦點時的樣式 */
input[type="text"]:focus {
    background-color: rgba(0, 0, 0, 0.178); /* 半透明背景 */
    outline: none; /* 去掉邊框 */
    transform: scale(1.05); /* 放大效果 */
}

/* 輸入框的placeholder樣式 */
input[type="text"]::placeholder {
    color: rgba(255, 255, 255, 0.7); /* 淡白色的placeholder */
    font-weight: normal;
}




/*===============動畫===============*/
@keyframes gradientHover {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}