@font-face {
  font-family: '钉钉进步体 Regular';
  font-weight: 400;
  src: url('https://zm-cloud.oss-cn-beijing.aliyuncs.com/aisou/wxz4a30tbtqmfm7q7q1.ttf') format('truetype');
  font-variation-settings: normal;
  font-display: swap;
}

/* 本地内容样式 */
.local-content {
  padding: 20px;
  height: 100%;
  overflow: auto;
  background-color: #fff;
  border-radius: 6px;
}

.local-content h1,
.local-content h2,
.local-content h3 {
  color: #333;
  margin-bottom: 15px;
}

.local-content .h2 {
  font-size: 25px;
  color: #333;
  margin-bottom: 15px;
  font-weight: 400;
  margin-left: 14px;
}

.local-content .mt-2 {
  margin-top: 8px;
}

.local-content figure {
  margin: 0;
  padding: 0;
}

.local-content p {
  color: #666;
  margin-bottom: 15px;
  line-height: 1.6;
}

.local-content a {
  color: #1890ff;
  text-decoration: none;
}

.local-content a:hover {
  color: #1890ff;
  text-decoration: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 4'%3E%3Cpath fill='none' stroke='%23FF4500' d='M0 3.5c5 0 5-3 10-3s5 3 10 3 5-3 10-3 5 3 10 3'/%3E%3C/svg%3E") repeat-x 0 100%;
  background-size: 20px auto;
  animation: waveMove 1s infinite linear;
}

@keyframes waveMove {
  from { background-position: 0 100%; }
  to { background-position: -20px 100%; }
}

.local-content table {
  border-collapse: collapse;
}

.local-content td,
.local-content th {
  padding: 10px;
  border: 1px solid #e8e8e8;
  text-align: left;
  color: #333;
}

.local-content th {
  background-color: #fafafa;
  font-weight: 700;
}

.local-content tr:nth-child(2n) {
  background-color: #f9f9f9;
}

.local-content .panel {
  display: block;
}

.local-content .panel-body {
  padding: 15px;
}

/* 基础样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: '钉钉进步体 Regular', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #e5e5e5;
  font-size: 15px;
}

body {
  background-color: #f5f7fa;
  color: #333;
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* 侧边栏 */
.sidebar {
  width: 200px;
  background: #232324;
  color: #fff;
  display: flex;
  flex-direction: column;
  z-index: 10;
}

.logo {
  padding: 22px 33px 14px 33px;
  border-bottom: 1px solid rgb(255 255 255/15%);
}

.logo h1 {
  font-size: 17px;
  font-weight: 400;
  letter-spacing: .5px;
  color: #fff;
}

.logo p {
  font-size: 14px;
  opacity: .8;
  margin-top: 5px;
}

/* 导航列表 */
.nav-list {
  flex: 1;
  padding: 15px 0;
  overflow-y: auto;
}

/* 分类项 */
.category-item {
  margin-bottom: 10px;
  width: 88%;
  margin-left: auto;
  margin-right: auto;
}

.category-header {
  padding: 10px 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 4px;
  transition: background-color .3s ease;
  font-weight: 500;
  font-size: 14px;
  color: #e5e5e5;
}

.category-header:hover {
  background-color: rgba(255,255,255,6%);
}

.category-icon {
  transition: transform .3s ease;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #848484;
  font-size: 12px;
}

.category-header.expanded .category-icon {
  transform: rotate(90deg);
}

.category-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}

.category-content.expanded {
  max-height: 500px;
  transition: max-height .5s ease;
}

/* 导航项 */
.nav-item {
  padding: 8px 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: all .2s ease;
  border-radius: 4px;
  margin: 4px 0;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity .3s ease, transform .3s ease, background-color .2s;
}

.nav-item.visible {
  opacity: 1;
  transform: translateX(0);
}

.nav-item:hover {
  background-color: rgba(255,255,255,6%);
}

.nav-item.active {
  background-color: rgba(255,255,255,6%);
}

.nav-icon {
  width: 24px;
  height: 24px;
  margin-right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgb(255 255 255/0);
  flex-shrink: 0;
}

.nav-icon img {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  object-fit: cover;
}

.nav-item span {
  color: #e5e5e5;
  font-size: 14px;
}

/* 提交按钮 */
.submit-button {
  padding: 15px;
  border-top: 1px solid rgba(255,255,255,15%);
  margin-top: auto;
}

.submit-button button {
  width: 100%;
  padding: 10px 15px;
  background-color: rgba(255,255,255,6%);
  border: 1px solid rgba(255,255,255,15%);
  border-radius: 4px;
  color: #e5e5e5;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all .3s ease;
  font-family: '钉钉进步体 Regular', sans-serif;
}

.submit-button button:hover {
  background-color: rgba(255,255,255,10%);
  border-color: rgba(255,255,255,25%);
}

.submit-button button:active {
  transform: translateY(1px);
}

/* 内容区 */
.content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background-color: #ddd;
}

.iframe-container {
  flex: 1;
  padding: 20px;
  overflow: hidden;
}

.iframe-wrapper {
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
}

iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 12px;
}

/* 响应式 */
@media (max-width:768px) {
  body {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    height: auto;
  }
  .nav-list {
    display: flex;
    overflow-x: auto;
    padding: 10px 0;
  }
  .nav-item {
    flex: 0 0 auto;
    padding: 12px 20px;
    border-left: none;
    border-bottom: 3px solid transparent;
  }
  .nav-item.active {
    border-left: none;
    border-bottom-color: #4fc3f7;
  }
}