/* ========================================
   汉堡云 M1 模板 - 主样式文件
   整合: reset.css + theme.css + common.css + style.css 核心部分
   ======================================== */

/* ==================== 1. CSS Reset ==================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  background-color: #ffffff !important;
}

body {
  margin: 0;
  font-family: 'MiSans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #333;
  text-align: left;
  background-color: #ffffff !important;
}

a {
  color: #0066ff;
  text-decoration: none !important;
  background-color: transparent;
  transition: color 0.3s;
}

a:hover {
  color: #0056d6;
  text-decoration: none !important;
}

img {
  vertical-align: middle;
  border-style: none;
  max-width: 100%;
}

button {
  border: none;
  background: none;
  cursor: pointer;
}

h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-weight: 500;
  line-height: 1.2;
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

ul, ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

input, button, select, optgroup, textarea {
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

/* ==================== 2. CSS Variables (主题) ==================== */
:root {
  --primary-color: #0066ff;
  --primary-dark: #0056d6;
  --primary-light: #4d94ff;
  --secondary-color: #f5f7fa;
  --text-color: #333333;
  --text-light: #666666;
  --text-lighter: #999999;
  --border-color: #e5e5e5;
  --success-color: #52c41a;
  --warning-color: #faad14;
  --error-color: #f5222d;
  --white: #ffffff;
  --black: #000000;
}

/* ==================== 3. 通用工具类 ==================== */

/* Section 容器 */
.section {
  width: 100%;
  padding: 60px 0;
}

.section-content {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 15px;
}

.section-desc {
  font-size: 16px;
  color: #666;
  max-width: 800px;
  margin: 0 auto;
}

/* 按钮样式 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  padding: 0.5rem 1.5rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 4px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  color: #fff;
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  padding: 0.25rem 1.2rem; /* 进一步缩小按钮padding */
}

.btn-primary:hover {
  color: #fff;
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-normal {
  background: #B9BAD8;
  color: #fff;
  border: 1px solid #B9BAD8;
}

.btn-normal:hover {
  background: #A5A6C8;
  border-color: #A5A6C8;
  color: #fff;
}

.btn-normal-light {
  background: #fff;
  color: #8b8cbe;
  border: 1px solid #8b8cbe;
}

.btn-normal-light:hover {
  background: #f0f7ff;
  color: #8b8cbe;
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

/* 卡片样式 */
.card {
  background-color: var(--white);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.3s;
}

.card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* 标签样式 */
.tag {
  display: inline-block;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 4px;
  background-color: var(--primary-light);
  color: var(--white);
}

/* 间距工具类 */
.mt-10 { margin-top: 10px; }
.mb-10 { margin-bottom: 10px; }
.mr-10 { margin-right: 10px; }
.ml-10 { margin-left: 10px; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.mr-20 { margin-right: 20px; }
.ml-20 { margin-left: 20px; }
.mt-30 { margin-top: 30px; }
.mb-30 { margin-bottom: 30px; }

/* 弹性布局工具类 */
.fboxWrap { display: flex; }
.fboxRow { display: flex; flex-direction: row; }
.fboxCol { display: flex; flex-direction: column; }
.Xcenter { justify-content: center; }
.Xbetween { justify-content: space-between; }
.Xaround { justify-content: space-around; }
.Ycenter { align-items: center; }
.flex1 { flex: 1; }

/* 文本工具类 */
.font-theme { color: #0066ff; }
.font-weight { font-weight: 600; }
.font14 { font-size: 14px; }
.font16 { font-size: 16px; }
.font18 { font-size: 18px; }
.font20 { font-size: 20px; }
.font-el1 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ==================== 4. 表单元素 ==================== */
input, select, textarea {
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 8px 12px;
  transition: all 0.3s;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 102, 255, 0.2);
}

/* ==================== 5. 动画效果 ==================== */
.fade-in {
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.slide-up {
  animation: slideUp 0.5s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ==================== 6. 响应式基础 ==================== */
@media (min-width: 1600px) {
  .section-content {
    max-width: 1600px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 20px 0;
  }
  
  .section-header h2 {
    font-size: 24px;
  }
  
  .section-desc {
    font-size: 14px;
  }
}

@media (min-width: 1181px) and (max-width: 1200px), 
       (min-width: 821px) and (max-width: 1200px) and (min-height: 821px) {
  html, body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }
  
  img, video, iframe, canvas {
    max-width: 100% !important;
  }
}
