body {
  background: #9b7643
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="%239b7643"/><path d="M0 0L100 100M50 0L100 50M0 50L50 100" stroke="%237d5d35" stroke-width="1" stroke-opacity="0.3"/></svg>');
  background-size: 200px 200px;
  font-family: "Times New Roman", Georgia, Serif;
}

#magazine {
  width: 100%;
  height: 80vh;
  margin: 0 auto;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

#magazine .turn-page {
  background-color: #fff;
  background-size: 100% 100%;
  position: relative;
  overflow: hidden;
}

/* 封面样式 */
#magazine .cover-page {
  background: linear-gradient(135deg, #1a2a6c 0%, #b21f1f 50%, #1a2a6c 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  position: relative;
  /* border: 5px solid #d4af37; */
}

.cover-title {
  position: absolute;
  top: 50px;
  font-size: 24px;
  letter-spacing: 8px;
  text-transform: uppercase;
  color: #d4af37;
  font-weight: bold;
}

.logo {
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, #d4af37 0%, #f9f9f9 50%, #d4af37 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
  font-size: 100px;
  font-weight: bold;
  color: #1a2a6c;
  border: 3px solid #fff;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.company-name {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 10px;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
  font-family: "Times New Roman", Georgia, Serif;
  letter-spacing: 2px;
}

.slogan {
  font-size: 28px;
  margin-bottom: 30px;
  font-style: italic;
  font-family: "Times New Roman", Georgia, Serif;
  color: #f9f9f9;
  position: relative;
  padding: 10px 30px;
}

.slogan:before,
.slogan:after {
  content: '"';
  font-size: 60px;
  position: absolute;
}

.slogan:before {
  left: 0;
  top: -20px;
}

.slogan:after {
  right: 0;
  bottom: -40px;
}

.description {
  font-size: 22px;
  max-width: 80%;
  line-height: 1.6;
  margin-bottom: 30px;
  font-family: "Times New Roman", Georgia, Serif;
  background: rgba(0, 0, 0, 0.3);
  padding: 15px;
  border-radius: 5px;
}

.issue-info {
  position: absolute;
  top: 50px;
  right: 50px;
  font-size: 20px;
  background: #d4af37;
  color: #1a2a6c;
  padding: 5px 15px;
  border-radius: 20px;
  font-weight: bold;
}

.contact {
  font-size: 18px;
  position: absolute;
  bottom: 50px;
  width: 100%;
  left: 0;
  font-family: "Times New Roman", Georgia, Serif;
  background: rgba(0, 0, 0, 0.4);
  padding: 10px;
}

.barcode {
  position: absolute;
  bottom: 50px;
  right: 50px;
  width: 120px;
  height: 100px;
  background: white;
  border: 1px solid #333;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  padding: 5px;
}

.barcode-line {
  height: 10px;
  background: black;
  width: 100%;
}

/* 内容页面样式 */
.content-page {
  /* padding: 0 60px; */
  font-family: "Times New Roman", Georgia, Serif;
  color: #333;
  line-height: 1.8;
}

.content-page .turn-page {
  padding: 0 60px;
  font-family: "Times New Roman", Georgia, Serif;
  color: #333;
  line-height: 1.8;
}

.page-header {
  position: absolute;
  top: 20px;
  width: 100%;
  text-align: center;
  font-size: 14px;
  color: #666;
}

.page-footer {
  position: absolute;
  bottom: 20px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 60px;
  font-size: 14px;
  color: #666;
}

.content-page > :nth-child(1) {
  margin-top: 0;
}

.page-title {
  font-size: 36px;
  text-align: center;
  color: #1a2a6c;
  margin-bottom: 30px;
  border-bottom: 3px solid #d4af37;
  padding-bottom: 15px;
  font-weight: bold;
  letter-spacing: 2px;
}

.page-subtitle {
  font-size: 26px;
  color: #b21f1f;
  margin: 30px 0 20px 0;
  padding-left: 15px;
  border-left: 5px solid #1a2a6c;
  font-weight: bold;
}

.page-content {
  font-size: 18px;
  margin-bottom: 20px;
  text-align: justify;
  text-indent: 36px;
}

.first-character {
  font-size: 30px;
  font-weight: bold;
  float: left;
  margin-right: 5px;
  line-height: 1;
  color: #1a2a6c;
}

.highlight-box {
  background: #f0f8ff;
  border-left: 5px solid #1a2a6c;
  padding: 20px;
  margin: 25px 0;
  font-style: italic;
}

.product-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 20px 0;
  width: 100%;
  text-align: center;
  margin-top: 100px;
}

.product-item {
  width: 100%;
  margin-bottom: 30px;
  border: 2px solid #ddd;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.product-item:hover {
  transform: translateY(-5px);
}

.product-image {
  width: 100%;
  height: 65vh;
  max-width: none;
  max-height: 80vh;
  /* background: linear-gradient(45deg, #1a2a6c, #b21f1f); */
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  border-radius: 6px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 20px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
  box-sizing: border-box;
}

.product-name {
  font-weight: bold;
  text-align: center;
  margin-bottom: 10px;
  font-size: 20px;
  color: #1a2a6c;
}

.product-desc {
  font-size: 16px;
  color: #666;
  text-align: center;
  line-height: 1.6;
}

.honor-section {
  margin: 30px 0;
}

.honor-item {
  display: flex;
  margin-bottom: 30px;
  align-items: flex-start;
  padding: 15px;
  border-bottom: 1px dashed #ddd;
}

.honor-item:last-child {
  border-bottom: none;
}

.honor-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #1a2a6c 0%, #b21f1f 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 24px;
  margin-right: 20px;
  flex-shrink: 0;
  border: 2px solid #d4af37;
}

.honor-content h4 {
  margin: 0 0 10px 0;
  color: #1a2a6c;
  font-size: 22px;
}

.honor-content p {
  margin: 0;
  color: #666;
  font-size: 16px;
  line-height: 1.6;
}

.contact-info {
  margin: 25px 0;
}

.contact-item {
  margin-bottom: 15px;
  display: flex;
  padding: 10px 0;
  border-bottom: 1px dashed #eee;
}

.contact-item:last-child {
  border-bottom: none;
}

.contact-label {
  font-weight: bold;
  width: 100px;
  color: #1a2a6c;
}

.contact-value {
  flex: 1;
  color: #555;
}

.map-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(45deg, #1a2a6c, #b21f1f);
  border-radius: 10px;
  margin: 20px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 20px;
}

body,
html {
  height: 100%;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.page-number {
  font-size: 16px;
  color: #666;
}

/* 顶部操作栏样式 */
#top-toolbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.toolbar-button {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: white;
  font-size: 40px;
  cursor: pointer;
  margin: 0 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}

.toolbar-button:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.toolbar-button:active {
  transform: translateY(0);
}

.toolbar-button:disabled {
  color: #aaaaaa;
  cursor: not-allowed;
  background: transparent;
  box-shadow: none;
  transform: none;
}

.toolbar-button.autoplay-active::before {
  content: "⏸";
}

.toolbar-button.autoplay-inactive::before {
  content: "▶";
}

/* 页数显示样式 */
.page-counter {
  color: white;
  font-size: 32px;
  margin: 0 20px;
  min-width: 160px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
}

/* 首页和末页按钮样式 */
.toolbar-button.first-page::before {
  content: "⇤";
}

.toolbar-button.last-page::before {
  content: "⇥";
}

/* 音效开关按钮样式 */
.toolbar-button.sound-on::before {
  content: "🔊";
}

.toolbar-button.sound-off::before {
  content: "🔇";
}
