/* Article Detail Page */
#page-article {
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
}

.article-nav {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.back-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  color: var(--text-dark);
  margin-right: 8px;
}

.article-nav-title {
  font-size: 15px;
  font-weight: 600;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.article-scroll {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 70px;
}

.article-detail-header {
  padding: 20px 16px 16px;
  border-bottom: 1px solid var(--border);
}

.article-detail-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 500;
  background: var(--primary-light);
  color: var(--primary);
  margin-bottom: 10px;
}

.article-detail-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.4;
  margin-bottom: 10px;
}

.article-detail-meta {
  font-size: 12px;
  color: var(--text-muted);
}

.article-detail-meta .dot {
  margin: 0 4px;
}

/* Article Body */
.article-body {
  padding: 20px 16px;
}

.article-body p {
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: 16px;
}

.article-body h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
  padding-left: 10px;
  border-left: 3px solid var(--primary);
}

.article-section {
  margin-bottom: 20px;
}

/* Paywall */
.paywall {
  margin-top: 24px;
  padding: 32px 16px;
  background: linear-gradient(180deg, rgba(245,245,240,0) 0%, var(--bg) 30%);
  text-align: center;
}

.paywall-icon {
  font-size: 32px;
  margin-bottom: 8px;
}

.paywall-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.paywall-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.paywall-btn {
  display: inline-block;
  background: var(--primary);
  color: #ffffff;
  padding: 10px 32px;
  border-radius: 22px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

/* Article Action Bar */
.article-action-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4px 12px;
  cursor: pointer;
}

.action-icon {
  font-size: 18px;
}

.action-text {
  font-size: 10px;
  color: var(--text-muted);
}

.ask-ai-btn {
  flex: 1;
  background: var(--primary);
  color: #ffffff;
  text-align: center;
  padding: 10px 0;
  border-radius: 22px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
}

.ask-ai-btn:active {
  opacity: 0.9;
}

/* Desktop */
@media (min-width: 768px) {
  #page-article {
    width: 100%;
  }
  .article-detail-header {
    padding: 28px 32px 20px;
  }
  .article-detail-title {
    font-size: 24px;
  }
  .article-body {
    padding: 24px 32px;
  }
  .article-body p {
    font-size: 16px;
  }
  .article-body h3 {
    font-size: 18px;
  }
  .article-action-bar {
    padding: 10px 32px;
  }
}
