/* 数字版入口 */
.digital-edition {
  position: fixed;
  top: 300px;
  left: 20px;
  z-index: 1000;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 10px;
  width: 120px;
  transition: all 0.3s ease;
}

.digital-edition:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.digital-edition a {
  display: block;
  text-decoration: none;
  color: #333;
}

.digital-edition-img {
  width: 100%;
  margin-bottom: 10px;
}

.digital-edition-img img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.digital-edition-info {
  text-align: center;
}

.digital-edition-title {
  font-size: 12px;
  font-weight: bold;
  margin-bottom: 5px;
  color: #333;
}

.digital-edition-issn {
  font-size: 12px;
  color: #666;
}

/* 订阅入口 */
.subscribe-container {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  z-index: 1000;
  transition: all 0.3s ease;
  width: 74px;
  height: 300px;
}

.subscribe-text {
  writing-mode: vertical-rl;
  text-orientation: upright;
  background: #c1272d;
  color: white;
  padding: 30px 20px;
  border-radius: 8px 0 0 8px;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.subscribe-text:hover {
  background: #a82126;
  transform: translateX(-5px);
}

.subscribe-popup {
  position: fixed;
  top: 50%;
  right: -480px;
  transform: translateY(-50%);
  width: 480px;
  background: white;
  box-shadow: -4px 0 15px rgba(0, 0, 0, 0.15);
  padding: 40px;
  transition: all 0.5s ease;
  z-index: 999;
  border-radius: 8px 0 0 8px;
}

.subscribe-container:hover .subscribe-popup {
  right: 74px;
}

.subscribe-content {
  font-size: 16px;
  line-height: 1.4;
  color: #333;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.subscribe-content p {
  margin: 0 0 8px 0;
}

.subscribe-qr {
  text-align: center;
  margin-top: 15px;
}

.subscribe-qr img {
  width: 100px;
  height: auto;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .digital-edition {
    display: none;
  }
  
  .subscribe-container {
    display: none;
  }
}