/* 顶部导航栏 */
.header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

.logo {
  font-size: 24px;
  font-weight: 700;
  color: #667eea;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.login-btn-header {
  padding: 10px 24px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
}

.login-btn-header:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.user-menu {
  position: relative;
}

.user-avatar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(102, 126, 234, 0.1);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
}

.user-avatar:hover {
  background: rgba(102, 126, 234, 0.2);
}

.username-text {
  font-weight: 600;
  color: #667eea;
}

.arrow {
  font-size: 12px;
  color: #667eea;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  padding: 8px 0;
  min-width: 160px;
  z-index: 1000;
}

.dropdown-item {
  padding: 12px 20px;
  cursor: pointer;
  color: #333;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  gap: 10px;
}

.dropdown-item:hover {
  background: rgba(102, 126, 234, 0.05);
  color: #667eea;
}

.dropdown-item.logout:hover {
  background: rgba(245, 108, 108, 0.05);
  color: #f56c6c;
}

/* 弹窗遮罩 */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
  backdrop-filter: blur(5px);
}

/* 登录弹窗 */
.login-modal {
  width: 420px;
  padding: 40px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideDown 0.3s ease-out;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.modal-header h2 {
  font-size: 24px;
  color: #333;
  font-weight: 600;
}

.close-btn {
  background: none;
  border: none;
  font-size: 32px;
  color: #999;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  line-height: 1;
  transition: color 0.2s;
}

.close-btn:hover {
  color: #333;
}

.form-item {
  margin-bottom: 20px;
}

.form-item label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  color: #555;
  font-weight: 500;
}

.form-item input {
  width: 100%;
  padding: 12px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.3s;
}

.form-item input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.login-submit-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
}

.login-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.error-msg {
  margin-top: 15px;
  color: #f56c6c;
  font-size: 14px;
  text-align: center;
  padding: 10px;
  background: rgba(245, 108, 108, 0.1);
  border-radius: 6px;
}

/* 个人详情弹窗 */
.profile-modal {
  width: 400px;
  padding: 30px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideDown 0.3s ease-out;
}

.profile-content {
  padding: 20px 0;
}

.profile-item {
  padding: 15px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 15px;
  color: #333;
}

.profile-item:last-child {
  border-bottom: none;
}

.profile-item strong {
  color: #667eea;
  font-weight: 600;
}

.status-badge {
  display: inline-block;
  padding: 4px 12px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
}

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

.content-wrapper {
  background: rgba(255, 255, 255, 0.98);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
}

.tab-section {
  background: rgba(255, 255, 255, 0.98);
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
}

.tab-nav {
  display: flex;
  gap: 10px;
  border-bottom: 2px solid #e8ecef;
  margin-bottom: 30px;
  padding-bottom: 0;
}

.tab-item {
  padding: 14px 28px;
  cursor: pointer;
  color: #666;
  font-size: 15px;
  font-weight: 500;
  border-radius: 8px 8px 0 0;
  transition: all 0.3s;
  position: relative;
  bottom: -2px;
}

.tab-item:hover {
  background: rgba(102, 126, 234, 0.05);
  color: #667eea;
}

.tab-item.active {
  color: #667eea;
  background: rgba(102, 126, 234, 0.1);
  border-bottom: 3px solid #667eea;
  font-weight: 600;
}

.tab-content-wrapper {
  padding: 30px;
}

.file-iframe {
  width: 100%;
  height: calc(100vh - 250px);
  border: none;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.loading-config {
  text-align: center;
  padding: 60px 20px;
  color: #909399;
  font-size: 14px;
}
