body {
  font-family: 'Microsoft YaHei', '微软雅黑', sans-serif;
  margin: 0;
  padding: 0;
  overflow: hidden;
  height: 100vh;
  min-height: 800px; /* 设置最小高度 */
}

html {
  overflow-y: auto; /* 允许整个页面在需要时滚动 */
}

.company-logo {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  text-align: center;
}

.company-logo img {
  height: 40px;
  width: auto;
  transition: transform 0.3s ease;
}

.company-logo img:hover {
  transform: scale(1.1);
}

.container {
  display: flex;
  height: calc(100vh - 50px); /* 减去顶部导航的高度 */
  min-height: 750px; /* 设置最小高度 */
  margin-top: 50px; /* 顶部导航的高度 */
}

.preview-panel {
  width: 60%;
  height: 100%;
  min-height: 750px; /* 设置最小高度 */
  border-right: 1px solid #ccc;
  overflow-y: auto;
}

.form-panel {
  width: 40%;
  height: 100%;
  min-height: 750px; /* 设置最小高度 */
  overflow-y: auto;
  padding: 20px;
  box-sizing: border-box;
  background-color: #f5f5f5;
}

.form-group {
  margin-bottom: 15px;
}

label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

input, select, textarea {
  width: 100%;
  padding: 8px;
  box-sizing: border-box;
  border: 1px solid #ddd;
  border-radius: 4px;
}

button {
  background-color: #4CAF50;
  color: white;
  padding: 10px 15px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 10px;
}

button:hover {
  background-color: #45a049;
}

.section-title {
  font-size: 1.2em;
  font-weight: bold;
  border-bottom: 1px solid #ddd;
  padding-bottom: 5px;
  margin-top: 20px;
  margin-bottom: 15px;
}

table.form-table {
  width: 100%;
  border-collapse: collapse;
}

table.form-table td {
  padding: 5px;
}

.add-row-btn {
  background-color: #2196F3;
  margin-bottom: 15px;
}

.remove-row-btn {
  background-color: #f44336;
  padding: 5px 10px;
  margin-left: 5px;
}

iframe {
  width: 100%;
  height: 100%;
  min-height: 750px; /* 设置最小高度 */
  border: none;
}

.loading {
  text-align: center;
  padding: 20px;
  font-size: 18px;
}

.button-group {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.button-group button {
  flex: 1;
  margin-top: 0;
}

.print-btn {
  background-color: #ff9800;
}

.print-btn:hover {
  background-color: #e68a00;
}

.save-btn {
  background-color: #673ab7;
}

.save-btn:hover {
  background-color: #5e35b1;
}

.language-switch {
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 100;
  display: flex;
  gap: 5px;
}

.navigation-links {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  display: flex;
  gap: 10px;
  background-color: #fff;
  padding: 5px;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-link {
  text-decoration: none;
  color: #333;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.nav-link:hover {
  background-color: #f0f0f0;
}

.nav-link.active {
  background-color: #2196F3;
  color: white;
}

.lang-btn {
  background-color: #9e9e9e;
  color: white;
  padding: 5px 10px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  margin: 0;
}

.lang-btn.active {
  background-color: #2196F3;
}

.lang-btn:hover {
  background-color: #757575;
}

.lang-btn.active:hover {
  background-color: #0b7dda;
}

@media print {
  .form-panel {
    display: none;
  }
  
  .preview-panel {
    width: 100%;
    height: 100%;
    overflow: visible;
  }
  
  body, html {
    overflow: visible;
    height: auto;
  }
}

/* 通知样式 */
#notification-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  max-width: 400px;
  pointer-events: none; /* 允许点击通知下方的元素 */
}

.notification {
  pointer-events: auto; /* 恢复通知本身的点击事件 */
  margin-bottom: 10px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOutRight {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(100%); opacity: 0; }
} 