/**
 * 响应式基础样式 - 云会通会议网站建设平台
 * 版本: 1.0
 * 更新时间: 2026-04-12
 */

/* ========================================
   CSS变量定义
   ======================================== */
:root {
  /* 主色调 */
  --primary-color: #0390d9;
  --primary-dark: #0277b6;
  --secondary-color: #ff6600;
  
  /* 文字颜色 */
  --text-primary: #333333;
  --text-secondary: #666666;
  --text-light: #999999;
  --text-white: #ffffff;
  
  /* 背景色 */
  --bg-primary: #ffffff;
  --bg-secondary: #f5f5f5;
  --bg-dark: #6a6a6a;
  
  /* 边框 */
  --border-color: #e0e0e0;
  --border-radius: 4px;
  
  /* 间距 */
  --spacing-xs: 5px;
  --spacing-sm: 10px;
  --spacing-md: 15px;
  --spacing-lg: 20px;
  --spacing-xl: 30px;
  
  /* 容器宽度 */
  --container-max-width: 1200px;
  --container-padding: 15px;
  
  /* 字体 */
  --font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
  --font-size-base: 14px;
  --font-size-sm: 12px;
  --font-size-lg: 16px;
  --font-size-xl: 18px;
  --font-size-xxl: 24px;
  
  /* 导航高度 */
  --nav-height: 60px;
  --nav-height-mobile: 50px;
  
  /* 过渡动画 */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

/* ========================================
   重置样式
   ======================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--text-secondary);
  background-color: var(--bg-primary);
}

/* 响应式图片 */
img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  border: 0;
}

/* 响应式表格 */
table {
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
}

/* 链接 */
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* 列表重置 */
ul, ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ========================================
   响应式容器系统
   ======================================== */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.container-fluid {
  width: 100%;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

/* ========================================
   响应式栅格系统
   ======================================== */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -var(--spacing-sm);
  margin-right: -var(--spacing-sm);
}

.row > * {
  padding-left: var(--spacing-sm);
  padding-right: var(--spacing-sm);
}

/* 列定义 */
.col-1 { flex: 0 0 8.333%; max-width: 8.333%; }
.col-2 { flex: 0 0 16.667%; max-width: 16.667%; }
.col-3 { flex: 0 0 25%; max-width: 25%; }
.col-4 { flex: 0 0 33.333%; max-width: 33.333%; }
.col-5 { flex: 0 0 41.667%; max-width: 41.667%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-7 { flex: 0 0 58.333%; max-width: 58.333%; }
.col-8 { flex: 0 0 66.667%; max-width: 66.667%; }
.col-9 { flex: 0 0 75%; max-width: 75%; }
.col-10 { flex: 0 0 83.333%; max-width: 83.333%; }
.col-11 { flex: 0 0 91.667%; max-width: 91.667%; }
.col-12 { flex: 0 0 100%; max-width: 100%; }

/* ========================================
   响应式导航栏
   ======================================== */
.navbar {
  position: relative;
  background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  position: sticky;
  z-index: 1000;
  border-bottom: 1px solid rgba(3, 144, 217, 0.1);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--nav-height);
}

.navbar-brand {
  display: flex;
  align-items: center;
  padding: var(--spacing-sm) 0;
}

.navbar-brand img {
  max-height: 45px;
  width: auto;
  transition: transform 0.3s ease;
}

.navbar-brand:hover img {
  transform: scale(1.02);
}

/* PC端导航菜单 */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-menu li a {
  display: block;
  padding: 8px 14px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  position: relative;
  transition: all 0.25s ease;
  overflow: hidden;
}

.nav-menu li a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), #00b4d8);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-menu li a:hover {
  color: var(--primary-color);
  background: rgba(3, 144, 217, 0.06);
  text-decoration: none;
}

.nav-menu li a:hover::before {
  width: 60%;
}

.nav-menu li a.active {
  color: #fff;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  box-shadow: 0 2px 8px rgba(3, 144, 217, 0.3);
}

.nav-menu li a.active::before {
  display: none;
}

/* 移动端菜单按钮 */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  z-index: 1001;
  box-shadow: 0 2px 8px rgba(3, 144, 217, 0.25);
  transition: all 0.3s ease;
}

.menu-toggle:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(3, 144, 217, 0.35);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 2px 0;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

/* 汉堡菜单动画 */
.menu-toggle.active {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.35);
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ========================================
   响应式Banner轮播
   ======================================== */
.banner-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.banner-slide {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 31.5%; /* 315px / 1000px */
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

/* ========================================
   响应式表格
   ======================================== */
.table-responsive {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-responsive > table {
  min-width: 600px;
}

/* 移动端表格卡片化 */
@media screen and (max-width: 768px) {
  .table-card {
    display: block;
  }
  
  .table-card thead {
    display: none;
  }
  
  .table-card tbody,
  .table-card tr,
  .table-card td {
    display: block;
    width: 100%;
  }
  
  .table-card tr {
    margin-bottom: var(--spacing-md);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: var(--spacing-sm);
  }
  
  .table-card td {
    padding: var(--spacing-sm);
    text-align: left;
    border: none;
    border-bottom: 1px solid var(--border-color);
  }
  
  .table-card td:last-child {
    border-bottom: none;
  }
  
  .table-card td::before {
    content: attr(data-label);
    display: block;
    font-weight: bold;
    margin-bottom: var(--spacing-xs);
    color: var(--text-primary);
  }
}

/* ========================================
   响应式表单
   ======================================== */
.form-group {
  margin-bottom: var(--spacing-md);
}

.form-control {
  display: block;
  width: 100%;
  height: 40px;
  padding: var(--spacing-sm) var(--spacing-md);
  font-size: var(--font-size-base);
  line-height: 1.5;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  transition: border-color var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(3, 144, 217, 0.1);
}

textarea.form-control {
  height: auto;
  min-height: 100px;
  resize: vertical;
}

.form-label {
  display: block;
  margin-bottom: var(--spacing-xs);
  font-weight: bold;
  color: var(--text-primary);
}

/* 按钮样式 */
.btn {
  display: inline-block;
  padding: var(--spacing-sm) var(--spacing-lg);
  font-size: var(--font-size-base);
  font-weight: normal;
  line-height: 1.5;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: var(--border-radius);
  transition: all var(--transition-fast);
}

.btn-primary {
  color: var(--text-white);
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

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

.btn-block {
  display: block;
  width: 100%;
}

/* ========================================
   响应式卡片
   ======================================== */
.card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  margin-bottom: var(--spacing-md);
  transition: box-shadow var(--transition-fast);
}

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

.card-header {
  padding: var(--spacing-md);
  border-bottom: 1px solid var(--border-color);
}

.card-body {
  padding: var(--spacing-md);
}

.card-footer {
  padding: var(--spacing-md);
  border-top: 1px solid var(--border-color);
  background: var(--bg-secondary);
}

/* ========================================
   工具类
   ======================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--primary-color) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-danger { color: #dc3545 !important; }
.text-success { color: #28a745 !important; }

.d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }

.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.align-items-center { align-items: center; }

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: var(--spacing-sm) !important; }
.mt-2 { margin-top: var(--spacing-md) !important; }
.mt-3 { margin-top: var(--spacing-lg) !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: var(--spacing-sm) !important; }
.mb-2 { margin-bottom: var(--spacing-md) !important; }
.mb-3 { margin-bottom: var(--spacing-lg) !important; }

.p-0 { padding: 0 !important; }
.p-1 { padding: var(--spacing-sm) !important; }
.p-2 { padding: var(--spacing-md) !important; }
.p-3 { padding: var(--spacing-lg) !important; }

.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

/* ========================================
   媒体查询 - 平板端 (768px - 1024px)
   ======================================== */
@media screen and (min-width: 768px) and (max-width: 1024px) {
  :root {
    --container-padding: 20px;
    --font-size-base: 15px;
  }
  
  .container {
    max-width: 960px;
  }
  
  .col-md-1 { flex: 0 0 8.333%; max-width: 8.333%; }
  .col-md-2 { flex: 0 0 16.667%; max-width: 16.667%; }
  .col-md-3 { flex: 0 0 25%; max-width: 25%; }
  .col-md-4 { flex: 0 0 33.333%; max-width: 33.333%; }
  .col-md-6 { flex: 0 0 50%; max-width: 50%; }
  .col-md-12 { flex: 0 0 100%; max-width: 100%; }
}

/* ========================================
   媒体查询 - 移动端 (< 768px)
   ======================================== */
@media screen and (max-width: 767px) {
  :root {
    --container-padding: 15px;
    --font-size-base: 14px;
    --nav-height: var(--nav-height-mobile);
  }
  
  /* 移动端导航 */
  .menu-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 15px;
    background: linear-gradient(180deg, #fff 0%, #f8f9fa 100%);
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    z-index: 999;
  }
  
  .nav-menu.active {
    transform: translateX(0);
  }
  
  .nav-menu li {
    margin: 0;
    padding: 0;
  }
  
  .nav-menu li a {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    margin: 2px 0;
    font-size: 15px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  }
  
  .nav-menu li a::before {
    display: none;
  }
  
  .nav-menu li a:hover {
    background: rgba(3, 144, 217, 0.08);
    transform: translateX(5px);
    color: var(--primary-color);
    text-decoration: none;
  }
  
  .nav-menu li a.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #fff;
    box-shadow: 0 3px 10px rgba(3, 144, 217, 0.3);
  }
  
  /* Banner高度调整 */
  .banner-slide {
    padding-bottom: 50%;
    min-height: 200px;
  }
  
  /* 栅格 */
  .col-sm-12 { flex: 0 0 100%; max-width: 100%; }
  .col-sm-6 { flex: 0 0 50%; max-width: 50%; }
  
  /* 隐藏/显示控制 */
  .hidden-mobile { display: none !important; }
  .visible-mobile { display: block !important; }
  
  /* 内容区域调整 */
  .content-wrapper {
    padding: var(--spacing-md) 0;
  }
  
  /* 字体大小调整 */
  h1 { font-size: 24px; }
  h2 { font-size: 20px; }
  h3 { font-size: 18px; }
}

/* ========================================
   媒体查询 - 大屏 (> 1200px)
   ======================================== */
@media screen and (min-width: 1200px) {
  .container {
    max-width: var(--container-max-width);
  }
  
  .col-lg-1 { flex: 0 0 8.333%; max-width: 8.333%; }
  .col-lg-2 { flex: 0 0 16.667%; max-width: 16.667%; }
  .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
  .col-lg-4 { flex: 0 0 33.333%; max-width: 33.333%; }
  .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
  .col-lg-12 { flex: 0 0 100%; max-width: 100%; }
  
  .hidden-desktop { display: none !important; }
}

/* ========================================
   打印样式
   ======================================== */
@media print {
  * {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  
  a,
  a:visited {
    text-decoration: underline;
  }
  
  img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }
  
  .navbar,
  .menu-toggle {
    display: none !important;
  }
}
