* {
  margin: 0;
  padding: 0;
  -moz-box-sizing: border-box;
       box-sizing: border-box;
}


.gptslot {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
     -moz-box-pack: center;
          justify-content: center;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  margin: 16px;
  min-height: 250px;
  background-color: #ffffff;

  width: 300px;
  margin: auto;
}


.ad-label {
  width: 100%;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
     -moz-box-pack: center;
          justify-content: center;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  position: relative;
  padding: 5px 0px 2px 0px;
  font-size: 14px;
}


.gptslot {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
     -moz-box-pack: center;
          justify-content: center;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  margin: 16px;
  margin-top: 0px;
  min-height: 250px;
  background-color: #ffffff;

  width: 300px;
  margin: auto;
}


body {
  font-family: 'Arial', sans-serif;
  background-color: #f5f5f5;
}


header {
  background-color: #4CAF50;
  padding: 1rem;
  text-align: center;
  color: white;
}


#title {
  font-size: 1.5em;
  font-weight: bold;
  color: #333;
  text-decoration: none;
  display: block;
  margin: 0;
}


.container {
  margin: 10px auto;
  padding: 2rem;
  background: white;
  border-radius: 8px;
  max-width: 900px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  width: 98%; 
  text-align: left;
}


.input-group {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-flex-wrap: wrap;
          flex-wrap: wrap; /* 🔥 重要，自动换行 */
  gap: 0.5rem;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  margin-bottom: 1.5rem;
}


.input-group input {
  -webkit-box-flex: 1;
  -webkit-flex: 1 1 80px;
     -moz-box-flex: 1;
          flex: 1 1 80px; /* 🔥 重要，改成弹性宽度，最小80px */
  min-width: 60px;
  padding: 0.5rem;
  font-size: 1rem;
}


.input-group button {
  padding: 0.5rem 1rem;
  background-color: #4CAF50;
  border: none;
  color: white;
  cursor: pointer;
  border-radius: 4px;
  -webkit-flex-shrink: 0;
          flex-shrink: 0; /* 🔥 保证按钮不被挤爆 */
  font-size: 1rem;
}


.input-group button:hover {
  background-color: #45a049;
}


.result {
  width: 100%;
  background-color: #e0f7fa;
  padding: 1.5rem;
  border-radius: 12px;
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  color: #006064;
  word-break: break-word; /* 🔥 防止长内容撑爆 */
}


.recommendations {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-flex-wrap: wrap;
          flex-wrap: wrap; /* 🔥 多列自动换行 */
  gap: 2rem;
}


.column {
  -webkit-box-flex: 1;
  -webkit-flex: 1 1 300px;
     -moz-box-flex: 1;
          flex: 1 1 300px; /* 🔥 最小300px，大了再扩展 */
  min-width: 250px;
}


.column h2 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}


.column ul {
  list-style: none;
  padding: 0;
}


.column li {
  margin-bottom: 0.5rem;
  word-break: break-word; /* 🔥 防止li内容太长撑爆 */
}


.column a {
  text-decoration: none;
  color: #007bff;
  font-size: 1rem;
}


.column a:hover {
  text-decoration: underline;
}


footer {
  background-color: #4CAF50;

  padding: 10px 0;
  text-align: center;
  position: relative;
  width: 100%;
  margin-top: 20px;
}


.footer-links {
  font-size: 1.1em;
}


.footer-links a {
  color: #333;
  text-decoration: none;
  margin: 0 15px;
}


.footer-links a:hover {
  text-decoration: underline;
}
