@import './variables.scss';

.portal-layout {
  min-height: 100vh;
  background-color: #f5f7fa;
}

.page-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 30px;
}

.page-header {
  text-align: center;
  margin-bottom: 60px;

  h1 {
    font-size: 42px;
    font-weight: 700;
    color: #1e3c72;
    margin: 0 0 15px 0;
  }

  .subtitle {
    font-size: 18px;
    color: #666666;
    margin: 0;
  }
}

section {
  margin-bottom: 80px;
}

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

  h2 {
    font-size: 32px;
    font-weight: 600;
    color: #1e3c72;
    margin: 0 0 15px 0;
  }

  .divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #1e3c72, #2a5298);
    margin: 0 auto;
    border-radius: 2px;
  }
}

.card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;

  &:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  }
}

.btn-primary {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  border: none;
  color: #ffffff;
  border-radius: 25px;
  padding: 12px 30px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;

  &:hover {
    background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 60, 114, 0.3);
  }
}

.tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;

  &.tag-primary {
    background: rgba(30, 60, 114, 0.1);
    color: #1e3c72;
  }

  &.tag-success {
    background: rgba(103, 194, 58, 0.1);
    color: #67c23a;
  }

  &.tag-warning {
    background: rgba(230, 162, 60, 0.1);
    color: #e6a23c;
  }

  &.tag-danger {
    background: rgba(245, 108, 108, 0.1);
    color: #f56c6c;
  }

  &.tag-info {
    background: rgba(144, 147, 153, 0.1);
    color: #909399;
  }
}

.placeholder-box {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);

  i {
    font-size: 64px;
    margin-bottom: 15px;
  }

  span {
    font-size: 16px;
  }
}

@media (max-width: 1200px) {
  .page-container {
    padding: 30px 20px;
  }
}

@media (max-width: 768px) {
  .page-header h1 {
    font-size: 32px;
  }

  .section-header h2 {
    font-size: 24px;
  }
}

// 富文本渲染样式
.rich-text-rendering {
  padding: 30px;
  line-height: 1.8;
  color: #333333;
  overflow: hidden;
  word-wrap: break-word;
  overflow-wrap: break-word;

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    color: #1e3c72;
    margin-top: 24px;
    margin-bottom: 16px;
  }

  p {
    margin-bottom: 16px;
    max-width: 100%;
    overflow: hidden;
  }

  img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    border-radius: 4px;
    margin: 16px 0;
    display: block;
    box-sizing: border-box;
  }

  a {
    color: #1e3c72;
    text-decoration: none;

    &:hover {
      text-decoration: underline;
    }
  }

  ul,
  ol {
    margin-left: 24px;
    margin-bottom: 16px;
  }

  li {
    margin-bottom: 8px;
  }
}

// 内容标题样式
.content-header {
  padding: 30px 30px 0;

  .title {
    font-size: 20px;
    font-weight: 600;
    color: #1e3c72;
    margin: 0;
  }
}