/* 文章专栏样式 - 专业排版 */

/* 导航栏logo */
.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.nav-logo img {
  width: 32px;
  height: 32px;
  margin-right: 8px;
}

.nav-logo span {
  font-size: 1rem;
  font-weight: 600;
}

/* 文章列表页 */
.blog-hero {
  padding: 60px 0 30px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-align: center;
}

.blog-hero .container {
  max-width: 600px;
}

.blog-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 16px;
  font-weight: 700;
}

.blog-hero p {
  font-size: 1.2rem;
  opacity: 0.95;
}

/* 分类筛选 */
.blog-filter {
  padding: 32px 0 24px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-bottom: 2px solid rgba(102, 126, 234, 0.1);
}

.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  max-width: 800px;
  margin: 0 auto;
}

.filter-tag {
  padding: 10px 24px;
  background: white;
  border: 2px solid transparent;
  border-radius: 24px;
  font-size: 0.95rem;
  color: #495057;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.filter-tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
  border-color: rgba(102, 126, 234, 0.3);
}

.filter-tag.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
  transform: translateY(-2px);
}

/* 工具列表页 */
.tools-list {
  padding: 80px 0;
  background: #f8f9fa;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto 60px;
  padding: 0 20px;
}

.tool-card {
  background: white;
  border-radius: 16px;
  padding: 32px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
}

.tool-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(102, 126, 234, 0.2);
}

.tool-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  text-align: center;
}

.tool-card h2 {
  font-size: 1.4rem;
  color: #2c3e50;
  margin-bottom: 12px;
  font-weight: 600;
  text-align: center;
}

.tool-card p {
  font-size: 1rem;
  color: #7f8c8d;
  line-height: 1.7;
  margin-bottom: 20px;
  flex: 1;
  text-align: center;
}

.tool-link {
  display: block;
  text-align: center;
  color: #667eea;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.tool-card:hover .tool-link {
  color: #764ba2;
}

.tools-cta {
  max-width: 600px;
  margin: 0 auto;
  padding: 48px 40px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 16px;
  text-align: center;
  color: white;
  box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
}

.tools-cta h3 {
  font-size: 1.8rem;
  margin-bottom: 16px;
  color: white;
  font-weight: 700;
}

.tools-cta p {
  font-size: 1.1rem;
  opacity: 0.95;
  margin-bottom: 24px;
}

.tools-cta .cta-qr {
  width: 180px;
  height: 180px;
  background: white;
  padding: 12px;
  border-radius: 12px;
  margin: 0 auto 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.tools-cta .cta-qr img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tools-cta .cta-hint {
  font-size: 1rem;
  opacity: 0.9;
}

@media (max-width: 768px) {
  .tools-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.blog-list {
  padding: 80px 0;
  background: #f8f9fa;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.blog-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(102, 126, 234, 0.2);
}

.blog-card-content {
  padding: 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-tag {
  display: inline-block;
  padding: 6px 16px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 20px;
  font-size: 0.85rem;
  margin-bottom: 16px;
  font-weight: 500;
}

.blog-card h2 {
  font-size: 1.4rem;
  color: #2c3e50;
  margin-bottom: 16px;
  line-height: 1.4;
  font-weight: 600;
}

.blog-card p {
  font-size: 1rem;
  color: #7f8c8d;
  line-height: 1.7;
  margin-bottom: 20px;
  flex: 1;
}

.blog-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: #95a5a6;
  padding-top: 16px;
  border-top: 1px solid #ecf0f1;
}

/* 文章详情页 */
.blog-hero {
  padding: 60px 0 30px;
}

.blog-hero .container {
  max-width: 600px;
}

.blog-tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(255,255,255,0.2);
  border-radius: 20px;
  font-size: 0.9rem;
  margin-bottom: 20px;
  font-weight: 500;
}

.blog-hero h1 {
  font-size: 2.2rem;
  line-height: 1.4;
  margin-bottom: 20px;
  font-weight: 700;
}

.blog-meta {
  font-size: 0.95rem;
  opacity: 0.9;
  display: flex;
  gap: 12px;
  align-items: center;
}

.blog-content {
  padding: 80px 0;
  max-width: 800px;
  margin: 0 auto;
}

.blog-content h2 {
  font-size: 1.8rem;
  color: #2c3e50;
  margin: 48px 0 24px;
  padding-left: 16px;
  border-left: 4px solid #667eea;
  font-weight: 600;
}

.blog-content h3 {
  font-size: 1.3rem;
  color: #34495e;
  margin: 36px 0 18px;
  font-weight: 600;
}

.blog-content p {
  font-size: 1.05rem;
  color: #555;
  line-height: 1.9;
  margin-bottom: 24px;
}

.blog-content ul, .blog-content ol {
  padding-left: 28px;
  margin-bottom: 24px;
}

.blog-content li {
  font-size: 1.05rem;
  color: #555;
  line-height: 1.9;
  margin-bottom: 12px;
}

.blog-content strong {
  color: #2c3e50;
  font-weight: 600;
}

.blog-content blockquote {
  margin: 32px 0;
  padding: 24px 28px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-left: 4px solid #667eea;
  border-radius: 8px;
  color: #495057;
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.8;
}

/* 视觉卡片 - 替代图片 */
.visual-card {
  margin: 40px 0;
  padding: 48px 40px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 16px;
  text-align: center;
  color: white;
  box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
}

.visual-card .card-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  display: block;
}

.visual-card .card-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.visual-card .card-desc {
  font-size: 1rem;
  opacity: 0.95;
  line-height: 1.6;
}

/* 对比卡片 */
.compare-card {
  margin: 40px 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  padding: 40px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.compare-item {
  text-align: center;
  padding: 32px 24px;
  border-radius: 12px;
}

.compare-item.before {
  background: linear-gradient(135deg, #fee 0%, #ffe5e5 100%);
}

.compare-item.after {
  background: linear-gradient(135deg, #efe 0%, #e5ffe5 100%);
}

.compare-item .item-icon {
  font-size: 3.5rem;
  margin-bottom: 16px;
  display: block;
}

.compare-item .item-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 8px;
}

.compare-item .item-desc {
  font-size: 0.95rem;
  color: #7f8c8d;
}

.compare-arrow {
  font-size: 2.5rem;
  color: #667eea;
  font-weight: bold;
}

/* 步骤卡片 */
.steps-card {
  margin: 40px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 40px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 16px;
}

.step-item {
  text-align: center;
  padding: 24px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.step-number {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 auto 16px;
}

.step-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 8px;
}

.step-desc {
  font-size: 0.9rem;
  color: #7f8c8d;
  line-height: 1.5;
}

/* 简化版步骤样式 */
.image-placeholder.steps {
  margin: 32px 0;
  display: flex;
  gap: 16px;
  padding: 24px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 12px;
}

.image-placeholder.steps .step {
  flex: 1;
  text-align: center;
  padding: 16px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.image-placeholder.steps .step-num {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 auto 8px;
}

.image-placeholder.steps .step-text {
  font-size: 0.95rem;
  color: #2c3e50;
  font-weight: 500;
}

/* 提示卡片 */
.tip-card {
  margin: 32px 0;
  padding: 24px 28px;
  background: linear-gradient(135deg, #fff3cd 0%, #ffe69c 100%);
  border-left: 4px solid #ffc107;
  border-radius: 8px;
}

.tip-card .tip-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #856404;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tip-card .tip-content {
  font-size: 1rem;
  color: #856404;
  line-height: 1.7;
}

/* 文章图片 */
.blog-image {
  margin: 32px 0;
  text-align: center;
}

.blog-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.blog-image figcaption {
  margin-top: 12px;
  font-size: 0.9rem;
  color: #95a5a6;
  font-style: italic;
}

/* Footer logo限制 */
.footer-brand .logo {
  width: 32px;
  height: 32px;
  margin-bottom: 8px;
}

/* 文章底部 CTA */
.article-cta {
  margin-top: 40px;
  padding: 24px 20px;
  background: linear-gradient(160deg, #4a3f9f 0%, #5d4a9e 55%, #6a4d96 100%);
  border-radius: 12px;
  text-align: center;
  color: white;
  box-shadow: 0 2px 12px rgba(102, 126, 234, 0.15);
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.article-cta h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: white;
  font-weight: 600;
}

.article-cta p {
  font-size: 0.95rem;
  color: #ffffff;
  margin-bottom: 16px;
}

.article-cta .cta-qr {
  width: 120px;
  height: 120px;
  background: white;
  padding: 8px;
  border-radius: 8px;
  margin: 0 auto 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.article-cta .cta-qr img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.article-cta .cta-hint {
  font-size: 1rem;
  color: #f0eaff;
}

/* 响应式 */
@media (max-width: 768px) {
  .blog-hero h1 {
    font-size: 1.8rem;
  }
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .blog-hero h1 {
    font-size: 1.6rem;
  }
  .blog-content h2 {
    font-size: 1.4rem;
  }
  .compare-card {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .compare-arrow {
    transform: rotate(90deg);
  }
  .steps-card {
    grid-template-columns: 1fr;
  }
  .visual-card {
    padding: 32px 24px;
  }
}
