/* 基础样式 */
body {
  font-family: 'Microsoft YaHei', Arial, sans-serif;
  max-width: 800px;
  margin: 0 auto;
  padding: 8px;
  background: url('https://acosr.cn/api/picapi.php?data=pic&type=mjx') no-repeat center center fixed;
  background-size: cover;
  color: #333;
  min-height: 100vh;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(240, 245, 255, 0.9), rgba(228, 236, 255, 0.8));
  z-index: -1;
}

/* 加载动画 */
#initial-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.loader-content {
  text-align: center;
}

.loader-gif {
  width: 80px;
  height: 80px;
  margin: 0 auto;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" stroke="%23333" stroke-width="8" fill="none" stroke-dasharray="62.83 62.83" transform="rotate(96 50 50)"><animateTransform attributeName="transform" type="rotate" repeatCount="indefinite" dur="1s" values="0 50 50;360 50 50"/></circle></svg>') no-repeat center;
  background-size: contain;
}

.loader-text {
  margin-top: 20px;
  font-size: 18px;
  color: #333;
}

.loader-hidden {
  opacity: 0;
}

/* 视频容器 */
.video-container {
  max-width: 800px;
  margin: 20px auto 0;
  padding: 0 15px;
  width: 100%; /* 确保宽度对齐 */
  box-sizing: border-box;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 比例 */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  background: #000;
}

.video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
}

/* 信息卡片 - 更紧凑美观的布局 */
.info-card {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  max-width: 800px;
  margin: 15px auto;
  padding: 7px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(5px);
  width: 100%; /* 确保宽度对齐 */
  box-sizing: border-box;
}

.info-card div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0px;
  min-height: 50px;
}

.info-card span:first-child {
  font-size: 14px;
  font-weight: bold;
  color: #2a4e9a;
  margin-bottom: 4px;
  width: 100%;
  text-align: center;
}

.info-card span:last-child {
  font-size: 12px;
  color: #5a6b9c;
  width: 100%;
  text-align: center;
}

/* 类型选择器 */
.type-selector {
  max-width: 800px;
  margin: 15px auto;
  text-align: center;
  width: 100%; /* 确保宽度对齐 */
  box-sizing: border-box;
}

.type-selector select {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid rgba(100, 150, 255, 0.3);
  border-radius: 8px;
  font-size: 15px;
  background-color: rgba(255, 255, 255, 0.9);
  color: #2a4e9a;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232a4e9a'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
  text-align: center;
}

.type-selector select:focus {
  outline: none;
  border-color: #5CACEE;
  box-shadow: 0 0 0 2px rgba(92, 172, 238, 0.2);
}

/* 输入卡片 */
.input-card {
  max-width: 800px;
  margin: 15px auto;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: center;
  justify-items: center;
  box-sizing: border-box;
  width: 100%; /* 确保宽度对齐 */
}

.input-card input {
  max-width:800px;
  width: 100%;
  margin: 5px auto;
  padding: 10px 10px;
  border: 1px solid rgba(100, 150, 255, 0.3);
  border-radius: 8px;
  font-size: 15px;
  background-color: rgba(255, 255, 255, 0.9);
  color: #2a4e9a;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
}

.input-card input:focus {
  outline: none;
  border-color: #5CACEE;
  box-shadow: 0 0 0 2px rgba(92, 172, 238, 0.2);
}

/* 按钮样式 */
button {
  max-width:800px;
  padding: 10px;
  text-align: center;
  margin-left: 15px;
  background-color: #5CACEE;
  width: 100%;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  display: inline-block;
}

button:hover {
  background-color: #2a4e9a;
}

.next-button {
  background-color: #10AC84;
}

.next-button:hover {
  background-color: #0E8E6D;
}


/* 底部链接样式 */
.footer-links {
    display: flex;
    justify-content: center;
    align-items: center; /* 垂直居中 */
    gap: 5px;
    margin: 15px auto; /* 上下边距15px，水平自动居中 */
    padding: 0 5px; /* 添加内边距 */
    width: 100%;
    max-width: 800px; /* 与容器最大宽度一致 */
    box-sizing: border-box;
}

.footer-links a {
    color: #5a6b9c; /* 使用与页脚文字一致的颜色 */
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 15px;
    padding: 4px 0; /* 增加可点击区域 */
    position: relative;
}

.footer-links a:hover {
    color: #2a4e9a; /* 悬停时使用主色调 */
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #2a4e9a;
    transition: width 0.3s ease;
}

.footer-links a:hover::after {
    width: 100%; /* 悬停时显示下划线动画 */
}

/* 响应式调整 */
@media (max-width: 600px) {
    .footer-links {
        flex-wrap: wrap; /* 小屏幕换行 */
        gap: 12px;
        padding: 0 10px;
    }
}
