/* 
 * 通用样式表
 * 包含网站通用的基础样式定义
 */

/* 基础重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  min-height: 100vh;
  padding: 10px;
  line-height: 1.6;
}

/* 容器通用样式 */
.container {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  padding: 20px;
}

/* 页眉通用样式 */
.header {
  padding: 30px 20px;
  text-align: center;
  position: relative;
}

/* Logo容器样式 - 淡粉色主题 */
.logo {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #ffb6c1, #ff69b4);
  border-radius: 50%;
  margin: 0 auto 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(255, 105, 180, 0.3);
}

.logo-text {
  font-family: 'Arial', sans-serif;
  font-size: 24px;
  font-weight: bold;
  color: white;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 3px rgba(255, 20, 147, 0.3);
  position: relative;
  z-index: 1;
}

.header h1 {
  font-size: 20px;
  margin-bottom: 8px;
  line-height: 1.3;
  color: #ff69b4; /* 修改标题颜色为粉色 */
  text-shadow: 0 1px 3px rgba(255, 105, 180, 0.2);
}

.header p {
  font-size: 13px;
  line-height: 1.4;
  color: #ff69b4; /* 修改副标题颜色为粉色 */
  opacity: 0.9;
}

/* 标题通用样式 */
h1 {
  text-align: center;
  margin-bottom: 8px;
  font-size: clamp(20px, 5vw, 28px);
  font-weight: bold;
  color: #ff69b4; /* 确保所有h1标题都是粉色 */
}

.subtitle {
  text-align: center;
  color: #ff8fab; /* 修改副标题为浅粉色 */
  margin-bottom: 25px;
  font-size: clamp(13px, 3.5vw, 15px);
}

/* 内容区域通用样式 */
.content {
  padding: 20px;
}

/* 表单元素通用样式 */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

/* 按钮通用样式 */
button {
  width: 100%;
  padding: 16px;
  font-size: 17px;
  font-weight: 600;
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 10px;
  touch-action: manipulation;
  position: relative;
  overflow: hidden;
}

button:active:not(:disabled) {
  transform: scale(0.98);
}

button:disabled {
  background: linear-gradient(135deg, #ddd 0%, #ccc 100%);
  cursor: not-allowed;
  box-shadow: none;
}

/* 页脚通用样式 */
.footer {
  text-align: center;
  margin-top: 30px;
  padding: 20px;
  color: #ff8fab; /* 修改页脚颜色为浅粉色 */
  font-size: clamp(12px, 3vw, 13px);
}

/* 动画效果 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 加载动画 */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,105,180,.3);
  border-radius: 50%;
  border-top-color: #ff69b4;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* 响应式设计 - 平板 */
@media (min-width: 768px) {
  body {
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .container {
    border-radius: 24px;
    padding: 40px;
  }
  
  .header {
    padding: 40px 30px;
  }
  
  .logo {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
  }
  
  .logo-text {
    font-size: 32px;
  }
  
  .header h1 {
    font-size: 28px;
    margin-bottom: 10px;
  }
  
  .header p {
    font-size: 15px;
  }
  
  .content {
    padding: 40px;
  }
  
  .form-group {
    margin-bottom: 25px;
  }
  
  .form-group label {
    font-size: 16px;
    margin-bottom: 12px;
  }
  
  button {
    padding: 18px;
    font-size: 18px;
    border-radius: 12px;
  }
}

/* 响应式设计 - 小屏手机 */
@media (max-width: 360px) {
  .header h1 {
    font-size: 18px;
  }
  
  .header p {
    font-size: 12px;
  }
  
  .logo-text {
    font-size: 20px;
  }
  
  .form-group label {
    font-size: 14px;
  }
  
  button {
    font-size: 16px;
    padding: 14px;
  }
}
/* 响应式设计 - 大屏PC端 */
@media (min-width: 1440px) {
  .container {
    max-width: 1300px;
    padding: 60px;
  }
  
  .header h1 {
    font-size: 36px;
  }
  
  .content {
    padding: 60px;
  }
}
