/**
 * 文章订阅页样式
 * 适配 Stellar 主题
 * 参考：https://meuicat.com/posts/4b1ada04.html
 */

.subscribe-page {
  padding: 2rem 0;
}

/* 订阅卡片列表 */
.rss-plan-list {
  display: flex;
  width: 100%;
  flex-direction: row;
  flex-wrap: wrap;
  margin: 0 -4px;
  position: relative;
  justify-content: space-between;
  gap: 16px;
}

.rss-plan-item {
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 240px;
  height: 240px;
  margin: 6px 0;
  overflow: hidden;
  text-decoration: none;
  width: calc(100% / 3 - 12px);
  filter: brightness(1);
  transition: all 0.3s;
  border: var(--border-primary);
  box-shadow: var(--card-shadow);
  position: relative;
}

.rss-plan-item:visited {
  color: #fff;
}

.rss-plan-item.rss-plan-wechat {
  background: linear-gradient(135deg, #27c125 0%, #1fa824 100%);
}

.rss-plan-item.rss-plan-mail {
  background: linear-gradient(135deg, var(--theme-color) 0%, var(--theme-op-color) 100%);
}

.rss-plan-item.rss-plan-rss {
  background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
}

.rss-plan-item:hover {
  filter: brightness(1.1);
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* 订阅卡片内容 */
.rss-plan-description {
  font-size: 16px;
  color: #fff;
  margin: 26px 0 0 30px;
  line-height: 1.5;
}

.rss-plan-info-group {
  position: relative;
  margin: 0 0 26px 30px;
  color: #fff;
}

.rss-plan-title {
  font-size: 36px;
  font-weight: 700;
  width: fit-content;
  line-height: 1;
}

.rss-plan-info {
  width: fit-content;
  opacity: 0.9;
  font-size: 14px;
  margin-top: 4px;
}

.rss-plan-icon {
  position: absolute;
  bottom: -50px;
  right: -20px;
  height: 140px;
  user-select: none;
  transition: all 1.2s cubic-bezier(0.39, 0.575, 0.565, 1);
  transform-origin: bottom right;
  filter: blur(8px);
  opacity: 0.6;
}

.rss-plan-item:hover .rss-plan-icon {
  bottom: -40px;
  right: -10px;
  filter: blur(0);
  opacity: 1;
}

.rss-plan-item:hover {
  text-decoration: none !important;
}

/* 订阅表单 */
.submit-box {
  opacity: 0;
  height: 0;
  overflow: hidden;
  transition: all 0.3s ease 0s;
  margin-top: 2rem;
}

.submit-box.display {
  opacity: 1;
  height: auto;
}

.follow-it-form-subscribe {
  position: relative;
  display: block;
  padding: 26px;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: var(--border-primary);
  box-shadow: var(--card-shadow);
  background: var(--card-bg);
}

.follow-it-form-subscribe .heading {
  width: 100%;
  margin-bottom: 1rem;
  text-align: center;
}

.follow-it-form-subscribe .heading h5 {
  margin: 0;
  color: var(--text-p1);
  font-size: 18px;
  font-weight: 600;
}

.follow-it-form-subscribe .input-field {
  margin-top: 20px;
  width: 100%;
}

.follow-it-form-subscribe .input-field input {
  width: 100%;
  height: 48px;
  border-radius: 6px;
  border: 2px solid var(--border-secondary);
  outline: none;
  background: var(--block-bg);
  color: var(--text-p1);
  font-size: 14px;
  text-align: center;
  transition: all 0.3s ease;
}

.follow-it-form-subscribe .input-field input:focus {
  border-color: var(--theme-color);
}

.follow-it-form-subscribe .submit-button {
  margin-top: 16px;
  width: 100%;
}

.follow-it-form-subscribe .submit-button button {
  width: 100%;
  height: 42px;
  border: 0;
  border-radius: 6px;
  line-height: 42px;
  color: #fff;
  background: var(--text-p1);
  box-shadow: var(--card-shadow);
  transition: all 0.3s;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}

.follow-it-form-subscribe .submit-button button:hover {
  background: var(--theme-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(var(--theme-rgb), 0.3);
}

/* 响应式 */
@media screen and (max-width: 1024px) {
  .rss-plan-item {
    width: calc(100% / 2 - 8px);
  }

  .rss-plan-item:first-child {
    width: 100%;
  }
}

@media screen and (max-width: 768px) {
  .rss-plan-item {
    width: 100%;
  }

  .rss-plan-list {
    flex-direction: column;
  }
}
