/* 全新样式风格 - 蓝青科技感 */
:root {
  --primary: #3B82F6;
  --secondary: #06B6D4;
  --accent: #8B5CF6;
  --dark: #1F2937;
  --light: #F9FAFB;
  --gray-light: #E5E7EB;
  --gray: #9CA3AF;
  --gradient-start: #3B82F6;
  --gradient-end: #06B6D4;
  --shadow-sm: 0 2px 8px rgba(59, 130, 246, 0.08);
  --shadow-md: 0 6px 20px rgba(59, 130, 246, 0.12);
  --shadow-lg: 0 12px 32px rgba(59, 130, 246, 0.18);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

/* 全局样式 */
body {
  background-color: #F0F9FF;
  background-image: radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.08) 0%, rgba(6, 182, 212, 0.05) 90%);
  overflow-x: hidden;
  position: relative;
  font-family: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', sans-serif;
  color: var(--dark);
  line-height: 1.6;
}

body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.03) 0%, rgba(6, 182, 212, 0.02) 100%);
  z-index: -1;
}

/* 滚动条美化 */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: linear-gradient(to bottom, #F0F9FF, #E0F2FE);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #2563EB, #0891B2);
}

/* 玻璃拟态效果增强 */
.bg-glass {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-md);
}

/* 渐变边框 */
.gradient-border {
  position: relative;
  border-radius: var(--radius-lg);
  z-index: 0;
}
.gradient-border::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  border-radius: calc(var(--radius-lg) + 2px);
  background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
  background-size: 300% 300%;
  animation: gradientMove 4s ease infinite;
}
@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* 动画定义 */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(24px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* 动画类 */
.animate-float {
  animation: float 3.5s ease-in-out infinite;
}
.animate-fade-in-up {
  animation: fadeInUp 0.9s ease-out forwards;
}

/* 导航栏样式调整 */
header.bg-glass {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(59, 130, 246, 0.1);
}

/* 响应式布局优化 */
@media (max-width: 768px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .gradient-border::before {
    inset: -1px;
  }
  .bg-glass {
    backdrop-filter: blur(8px);
  }
}

/* 打印样式 */
@media print {
  .bg-glass, .gradient-border::before {
    background: white !important;
    backdrop-filter: none !important;
  }
}

/* 工具类补充 */
.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 折叠面板图标旋转动画 */
.rotate-180 {
  transform: rotate(180deg);
}

/* 拼多多模板自定义颜色 */
.text-pddDark {
  color: var(--dark);
}
.text-pddPrimary {
  color: var(--primary);
}
.text-pddSecondary {
  color: var(--secondary);
}
.text-pddGradientEnd {
  color: var(--gradient-end);
}
.bg-pddPrimary {
  background-color: var(--primary);
}
.bg-pddSecondary {
  background-color: var(--secondary);
}
.border-pddPrimary {
  border-color: var(--primary);
}
.from-pddGradientStart {
  --tw-gradient-from: var(--gradient-start) var(--tw-gradient-from-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgb(255 255 255 / 0));
}
.to-pddGradientEnd {
  --tw-gradient-to: var(--gradient-end) var(--tw-gradient-to-position);
}
.from-pddPrimary {
  --tw-gradient-from: var(--primary) var(--tw-gradient-from-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgb(255 255 255 / 0));
}
.to-pddSecondary {
  --tw-gradient-to: var(--secondary) var(--tw-gradient-to-position);
}
.bg-pdd-gradient {
  background-image: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
}
.hover\:bg-pddPrimary\/5:hover {
  background-color: rgba(59, 130, 246, 0.05);
}

/* 文章内容样式 - 解决行间距和格式问题 */
.article-content {
  line-height: 1.8;
  color: #374151;
  font-size: 1.0625rem;
}

.article-content p {
  margin-bottom: 1.5em;
  line-height: 1.8;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
  font-weight: 700;
  line-height: 1.4;
  margin-top: 2em;
  margin-bottom: 0.75em;
  color: #1f2937;
}

.article-content h1 {
  font-size: 2em;
}

.article-content h2 {
  font-size: 1.5em;
}

.article-content h3 {
  font-size: 1.25em;
}

.article-content h4 {
  font-size: 1.125em;
}

.article-content ul,
.article-content ol {
  margin: 1.5em 0;
  padding-left: 2em;
}

.article-content ul {
  list-style-type: disc;
}

.article-content ol {
  list-style-type: decimal;
}

.article-content li {
  margin-bottom: 0.5em;
  line-height: 1.8;
}

.article-content li > ul,
.article-content li > ol {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

.article-content blockquote {
  border-left: 4px solid var(--primary);
  padding-left: 1.5em;
  margin: 1.5em 0;
  color: #4b5563;
  font-style: italic;
  background-color: #f9fafb;
  padding: 1em 1.5em;
  border-radius: 0 8px 8px 0;
}

.article-content code {
  background-color: #f3f4f6;
  padding: 0.2em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
  color: #ef4444;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.article-content pre {
  background-color: #1f2937;
  color: #e5e7eb;
  padding: 1.25em;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1.5em 0;
}

.article-content pre code {
  background-color: transparent;
  padding: 0;
  color: inherit;
  font-size: 0.875em;
}

.article-content a {
  color: var(--primary);
  text-decoration: underline;
  transition: color 0.2s ease;
}

.article-content a:hover {
  color: #2563eb;
}

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.5em 0;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
}

.article-content th,
.article-content td {
  border: 1px solid #e5e7eb;
  padding: 0.75em 1em;
  text-align: left;
}

.article-content th {
  background-color: #f9fafb;
  font-weight: 600;
}

.article-content hr {
  border: none;
  border-top: 2px solid #e5e7eb;
  margin: 2em 0;
}

.article-content strong {
  font-weight: 700;
  color: #1f2937;
}

.article-content em {
  font-style: italic;
}

/* 确保段落间有明确分隔 */
.article-content > *:first-child {
  margin-top: 0;
}

.article-content > *:last-child {
  margin-bottom: 0;
}

/* 助力入口按钮样式 */
.help-entry-btn {
  display: inline-flex;
  align-items: center;
  padding: 1rem 2rem;
  border-radius: 9999px;
  font-weight: 700;
  color: white;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.4);
  transition: all 0.3s ease;
  text-decoration: none;
  font-size: 1.125rem;
}

.help-entry-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 20px 40px -10px rgba(59, 130, 246, 0.5);
}

.help-entry-btn:active {
  transform: scale(0.98);
}

.help-entry-btn i {
  transition: transform 0.3s ease;
}

.help-entry-btn:hover i.fa-arrow-right {
  transform: translateX(4px);
}