@charset "utf-8";
/* LJSAFE 公共样式 - 基于首页设计风格 */

/* 重置样式 */
body,h1,h2,h3,h4,h5,h6,hr,p,blockquote,dl,dt,dd,ul,ol,li,pre,form,fieldset,legend,button,input,textarea { 
  margin: 0; 
  padding: 0; 
  border: 0;
}

html { 
  color: #000; 
}

html,body {
  width: 100%;
  min-width: 320px;
}

body,button,input,select,textarea { 
  margin: 0; 
  padding: 0;  
  font-family: 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;  
  font-size: 14px; 
  background: #fff;
  line-height: 1.6;
  color: #333;
}

ul,ol,li,dl,dd,dt {
  list-style: none;
}

em { 
  font-style: normal; 
}

a { 
  text-decoration: none;
  outline: none; 
  color: #333;
  transition: all 0.3s ease;
}

a:hover { 
  color: #0066cc;
  text-decoration: none;
}

a:active {
  color: #0066cc;
}

fieldset,img { 
  border: 0; 
}

label,button { 
  cursor: pointer; 
}

img { 
  -ms-interpolation-mode: bicubic;
  border: 0; 
  vertical-align: middle;
  max-width: 100%;
  height: auto;
}

/* 清除浮动 */
.clearfix:after { 
  content: ''; 
  display: block; 
  height: 0; 
  clear: both; 
}

.clearfix { 
  zoom: 1; 
}

.clear { 
  clear: both; 
}

/* 工具类 */
.fl { float: left; }
.fr { float: right; }

.wordwrap { 
  word-break: break-all; 
  word-wrap: break-word; 
}

.omg {
  overflow: hidden; 
  text-overflow: ellipsis; 
  white-space: nowrap;
}

/* 容器 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 按钮基础样式 */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background: #0066cc;
  color: white;
  border-color: #0066cc;
}

.btn-primary:hover {
  background: #0052a3;
  border-color: #0052a3;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 102, 204, 0.3);
}

.btn-secondary {
  background: transparent;
  color: #0066cc;
  border-color: #0066cc;
}

.btn-secondary:hover {
  background: #0066cc;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 102, 204, 0.2);
}

/* 标题样式 */
.page-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #0066cc;
  margin-bottom: 20px;
  text-align: center;
}

.section-title {
  font-size: 2rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 15px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 30px;
}

/* 卡片样式 */
.card {
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  padding: 30px;
  margin-bottom: 30px;
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* 网格布局 */
.grid {
  display: grid;
  gap: 30px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* 响应式网格 */
@media (max-width: 991px) {
  .grid-4,
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .container {
    padding: 0 15px;
  }
  
  .grid-4,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
  
  .page-title {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
}

/* 滚动条样式 */
::-webkit-scrollbar { 
  width: 6px;
}

::-webkit-scrollbar-track { 
  background-color: #f0f0f0; 
  border-radius: 3px;
}

::-webkit-scrollbar-thumb { 
  background-color: #0066cc;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #0052a3;
}

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

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

.fadeInUp {
  animation: fadeInUp 0.8s ease forwards;
  opacity: 0;
}

.slideInUp {
  animation: slideInUp 0.8s ease forwards;
  opacity: 0;
}

/* 确保所有动画元素最终可见 */
.fadeInUp,
.slideInUp {
  animation-fill-mode: forwards;
}

/* 触摸设备优化 */
*,a,button,input {
  -webkit-tap-highlight-color: rgba(255,0,0,0);
}

/* 加载状态 */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(0, 102, 204, 0.3);
  border-radius: 50%;
  border-top-color: #0066cc;
  animation: spin 1s ease-in-out infinite;
}

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