/*
 * Article Page Styles
 * Version: v1.0.5
 * Description: 文章页面样式，包含文章内容、导航、社交分享等组件
 */

/* ========================================
   面包屑导航样式
   作用：显示页面层级路径，帮助用户了解当前位置
   ======================================== */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.breadcrumb a:hover {
    color: var(--accent-color);
    /*text-decoration: underline;*/
}

.breadcrumb-separator {
    color: var(--bg-card);
    font-weight: 300;
}

/* ========================================
   文章容器样式
   作用：定义文章主体容器的布局、背景、阴影等视觉效果
   ======================================== */
.article {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

/* ========================================
   文章头部样式
   作用：文章标题区域，包含标题、发布时间、分类等元信息
   ======================================== */
.article-header {
    padding: var(--space-xl) var(--space-xl) var(--space-lg);
    background: var(--accent-color);
    color: white;
    text-align: center;
}

.article-header .hero-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-md);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    color: white;
    text-align: left;
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: right;
    gap: var(--space-sm);
    font-size: 0.9rem;
    opacity: 0.9;
    flex-wrap: wrap;
}

.article-meta time {
    font-weight: 500;
}
/* ========================================
   文章分类标签样式
   作用：显示文章所属分类，帮助用户快速定位文章主题
   ======================================== */
.category-tag-red {
    background: rgba(255, 255, 255, 0.2);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-weight: 500;
    color: var(--text-red);
}

.category-tag-white {
    background: rgba(255, 255, 255, 0.2);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-weight: 500;
}

.category-tag-blue {
    background: var(--bg-card);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-weight: 500;
    display: inline-block;
    transition: all 0.3s ease;
    
}

.category-tag-blue:hover {
    background: var(--text-blue);
    box-shadow: var(--shadow-md);
    color: var(--bg-card);
    transform: translateY(-1px);
    
}


.category-tag-blue:hover a {
    color: var(--bg-card) !important;
}


/* ========================================
   文章标签样式
   作用：显示文章相关标签，帮助分类和检索
   ======================================== */
.article-tags {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
}



/* ========================================
   文章内容区域样式
   作用：定义文章正文内容的排版、间距、字体等
   ======================================== */
.article-content {
    padding: var(--space-xl);
}

.article-image {
    margin-bottom: var(--space-lg);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.article-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform var(--transition-normal);
}

.article-image:hover img {
    transform: scale(1.02);
}

/* ========================================
   文章正文内容样式
   作用：定义文章正文的标题、段落、列表等元素样式
   ======================================== */
.content {
    line-height: 1.8;
    color: var(--text-primary);
}

.content h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: var(--space-xl) 0 var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--primary-color);
    position: relative;
}

.content h2::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--accent-color);
}

.content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: var(--space-lg) 0 var(--space-md);
}

.content h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: var(--space-md) 0 var(--space-sm);
}

.content p {
    margin-bottom: var(--space-md);
    text-align: justify;
}

.content ul, .content ol {
    margin: var(--space-md) 0;
    padding-left: var(--space-lg);
}

.content li {
    margin-bottom: var(--space-sm);
    line-height: 1.7;
}

.content li strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* ========================================
   代码块样式
   作用：定义代码块和行内代码的显示样式，包含语法高亮支持
   ======================================== */
.content pre {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    margin: var(--space-md) 0;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    line-height: 1.5;
    box-shadow: var(--shadow-sm);
}

.content code {
    background: var(--bg-secondary);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.content pre code {
    background: none;
    padding: 0;
    border: none;
    color: inherit;
}

/* ========================================
   链接样式
   作用：定义文章内链接的颜色、悬停效果和外链标识
   ======================================== */
.content a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all var(--transition-fast);
}

.content a:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.content a[target="_blank"]::after {
    content: ' ↗';
    font-size: 0.8em;
    opacity: 0.7;
}

/* ========================================
   引用块样式
   作用：定义文章中引用内容的显示样式，突出重要信息
   ======================================== */
.content blockquote {
    background: var(--bg-secondary);
    border-left: 4px solid var(--primary-color);
    padding: var(--space-md) var(--space-lg);
    margin: var(--space-lg) 0;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    color: var(--text-secondary);
}

/* ========================================
   文章底部样式
   作用：定义文章底部区域，包含操作按钮和相关链接
   ======================================== */
.article-footer {
    padding: var(--space-lg) var(--space-xl);
    /*background: var(--bg-secondary);*/
    /*border-top: 1px solid var(--border-color);*/
}

.article-actions {
    text-align: center;
}

.article-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.article-actions .btn:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.article-actions .btn::before {
    content: '←';
    font-size: 1.1em;
}

/* ========================================
   社交分享区域样式
   作用：定义社交媒体分享按钮的布局和各平台的品牌色彩
   ======================================== */
.social-sharing {
    text-align: start;
    padding: 0;
}

.social-sharing h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.social-sharing p {
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

.social-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  /* margin-bottom: var(--space-xl); */
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  text-decoration: none;
  font-size: 0.75rem; /* 12px */
  font-weight: 500;
  transition: var(--transition-normal);
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
  color: var(--text-secondary);
  line-height: 1.4;
}

.social-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.social-btn svg {
  width: 16px;
  height: 16px;
  transition: var(--transition-normal);
}

/* 原社交媒体按钮样式 */
/* .social-buttons {
    display: flex;
    justify-content: start;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.social-btn.twitter {
    background: #1da1f2;
    color: white;
}

.social-btn.twitter:hover {
    background: #0d8bd9;
}

.social-btn.facebook {
    background: #4267b2;
    color: white;
}

.social-btn.facebook:hover {
    background: #365899;
}

.social-btn.linkedin {
    background: #0077b5;
    color: white;
}

.social-btn.linkedin:hover {
    background: #005885;
}

.social-btn.devto {
    background: #0a0a0a;
    color: white;
}

.social-btn.devto:hover {
    background: #2d2d2d;
}

.social-btn.reddit {
    background: #ff4500;
    color: white;
}

.social-btn.reddit:hover {
    background: #e03d00;
}

.social-btn.hackernews {
    background: #ff6600;
    color: white;
}

.social-btn.hackernews:hover {
    background: #e55a00;
}

.social-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
} */

/* ========================================
   响应式设计 - 平板设备适配
   作用：针对768px以下屏幕的样式调整，优化平板设备显示效果
   ======================================== */
@media (max-width: 768px) {
    .article {
        margin: 0 var(--space-md);
        border-radius: var(--radius-md);
    }
    
    .article-header {
        padding: var(--space-lg) var(--space-md);
    }
    
    .article-header .hero-title {
        font-size: 1.6rem;
    }
    
    .article-meta {
        font-size: 0.8rem;
        justify-content: center;
    }
    
    .article-content {
        padding: var(--space-lg) var(--space-md);
    }
    
    .content h2 {
        font-size: 1.5rem;
    }
    
    .content h3 {
        font-size: 1.3rem;
    }
    
    .content pre {
        font-size: 0.8rem;
        padding: var(--space-sm);
    }
    
    .breadcrumb {
        margin: 0 var(--space-md) var(--space-md);
        font-size: 0.8rem;
    }
    
    .social-buttons {
        gap: var(--space-sm);
    }
    
    .social-btn {
        padding: var(--space-xs) var(--space-sm);
        font-size: 0.8rem;
    }
    
    .social-btn svg {
        width: 16px;
        height: 16px;
    }

    .social-buttons{
        justify-content: start;
    }
}

/* ========================================
   响应式设计 - 手机设备适配
   作用：针对480px以下屏幕的样式调整，优化手机设备显示效果
   ======================================== */
@media (max-width: 480px) {
    .article {
        margin: 0;
        border-radius: 0;
    }
    
    .article-header .hero-title {
        font-size: 1.4rem;
        line-height: 1.3;
    }
    
    .article-meta {
        flex-direction: column;
        gap: var(--space-xs);
        align-items: center;
    }
    
    .article-tags {
        gap: var(--space-xs);
    }
    

    
    .content {
        font-size: 0.95rem;
    }
    
    .content h2 {
        font-size: 1.3rem;
    }
    
    .content h3 {
        font-size: 1.1rem;
    }
    
    .social-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .social-btn {
        width: 200px;
        justify-content: center;
    }
}

/* ========================================
   目录(TOC)功能样式
   作用：提供文章目录导航功能，包含桌面版固定侧边栏和移动版浮动按钮
   功能：自动生成目录、平滑滚动、当前位置高亮、响应式适配
   ======================================== */

.toc-container {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    width: 280px;
    max-height: 70vh;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    z-index: 100;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.toc-header {
    background: var(--primary-color);
    color: white;
    padding: var(--space-md);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 12px 12px 0 0;
}

.toc-toggle {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0;
    display: none;
    transition: none;
}

.toc-toggle:hover {
    background: none !important;
    background-color: transparent !important;
}

.toc-content {
    max-height: calc(70vh - 60px);
    overflow-y: auto;
    padding: var(--space-sm) 0;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-item {
    margin: 0;
}

.toc-link {
    display: block;
    padding: var(--space-xs) var(--space-md);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    line-height: 1.4;
    border-left: 3px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0 6px 6px 0;
    position: relative;
    overflow: hidden;
}

.toc-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(var(--primary-color-rgb), 0.1));
    transition: width 0.3s ease;
    z-index: -1;
}

.toc-link:hover::before {
    width: 100%;
}

.toc-link:hover {
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    transform: translateX(4px);
}

.toc-link.active {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--bg-card);
    border-left-color: var(--accent-color);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(var(--primary-color-rgb), 0.3);
    transform: translateX(2px);
}

/* TOC Level Indentation */
.toc-link.level-2 {
    padding-left: 24px;
    font-size: 0.9em;
    opacity: 0.9;
}

.toc-link.level-3 {
    padding-left: 32px;
    font-size: 0.85em;
    opacity: 0.8;
}

.toc-link.level-4 {
    padding-left: 48px;
    font-size: 0.8em;
    opacity: 0.7;
}

/* TOC Scrollbar - 完全隐藏但保持滚动功能 */
.toc-content::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

.toc-content::-webkit-scrollbar-track {
    background: transparent;
}

.toc-content::-webkit-scrollbar-thumb {
    background: transparent;
}

.toc-content::-webkit-scrollbar-button {
    display: none;
}

.toc-content::-webkit-scrollbar-corner {
    background: transparent;
}

/* Firefox滚动条样式 - 隐藏 */
.toc-content {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

/* ========================================
   TOC移动端样式 - 大屏幕适配 (1200px以下)
   作用：在中等屏幕上将TOC转换为浮动按钮形式
   ======================================== */
@media (max-width: 1200px) {
    .toc-container {
        position: fixed;
        top: auto;
        right: 20px;
        bottom: 20px;
        transform: none;
        width: 60px;
        height: 60px;
        border-radius: 50%;
        overflow: visible;
        transition: all var(--transition-normal);
    }
    
    .toc-container.expanded {
        width: 280px;
        height: auto;
        max-height: 80vh;
        border-radius: 12px;
        bottom: 20px;
        right: 20px;
    }
    
    .toc-header {
        border-radius: 50%;
        width: 60px;
        height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        cursor: pointer;
        background: var(--primary-color);
        box-shadow: var(--shadow-lg);
    }
    
    .toc-container.expanded .toc-header {
        border-radius: 12px 12px 0 0;
        width: 100%;
        height: auto;
        padding: var(--space-md);
        justify-content: space-between;
    }
    
    .toc-toggle {
        display: block;
    }
    
    .toc-title {
        display: none;
    }
    
    .toc-container.expanded .toc-title {
        display: block;
    }
    
    .toc-content {
        display: none;
        background: var(--bg-card);
        border-radius: 0 0 12px 12px;
    }
    
    .toc-container.expanded .toc-content {
        display: block;
    }
    
    /* 确保移动端TOC链接保持圆角样式 */
    .toc-container .toc-link {
        border-radius: 0 6px 6px 0;
    }
}

/* ========================================
   TOC移动端样式 - 小屏幕适配 (768px以下)
   作用：在小屏幕设备上进一步优化TOC浮动按钮的尺寸和位置
   ======================================== */
@media (max-width: 768px) {
    .toc-container {
        right: 15px;
        bottom: 15px;
        width: 50px;
        height: 50px;
        border-radius: 25px;
    }
    
    .toc-container.expanded {
        width: 250px;
        right: 15px;
        max-height: 70vh;
        border-radius: 12px;
    }
    
    .toc-header {
        width: 50px;
        height: 50px;
        font-size: 0.8rem;
        border-radius: 25px;
    }
    
    .toc-container.expanded .toc-header {
        width: 100%;
        font-size: 0.9rem;
        border-radius: 12px 12px 0 0;
    }
    
    /* 确保小屏幕移动端TOC链接保持圆角样式 */
    .toc-container .toc-link {
        border-radius: 0 6px 6px 0;
    }
}

/* ========================================
   TOC滚动进度条样式
   作用：显示页面滚动进度，提供视觉反馈
   ======================================== */

/* ========================================
   TOC平滑滚动优化
   作用：为TOC导航提供平滑滚动效果和标题定位偏移
   ======================================== */
/* 启用平滑滚动行为 */
html {
    scroll-behavior: smooth;
}

/* 为标题添加滚动偏移，避免被固定头部遮挡 */
.content h2[id],
.content h3[id],
.content h4[id] {
    scroll-margin-top: 100px;
}

/* Demo Section Styles */
.demo-section {
    margin: 2rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 1px solid #dee2e6;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.demo-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #007bff, #28a745, #ffc107, #dc3545);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.demo-section h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    margin-top: 0;
}

.demo-section p {
    color: #6c757d;
    margin-bottom: 1.5rem;
    text-align: left;
    font-size: 1rem;
    line-height: 1.6;
}

/* Iframe Container */
.iframe-container {
    position: relative;
    width: 100%;
    height: 600px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    background: #ffffff;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.iframe-container:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: #ffffff;
    transition: opacity 0.3s ease;
}

/* Loading Spinner */
.iframe-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    z-index: 2;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Enhanced Responsive Design for Demo Section */
@media (max-width: 1200px) {
    .demo-section {
        margin: 1.8rem 0;
        padding: 1.8rem;
    }
    
    .iframe-container {
        height: 580px;
    }
}

@media (max-width: 992px) {
    .demo-section {
        margin: 1.6rem 0;
        padding: 1.6rem;
    }
    
    .demo-section h2 {
        font-size: 1.4rem;
    }
    
    .iframe-container {
        height: 550px;
    }
}

@media (max-width: 768px) {
    .demo-section {
        margin: 1.5rem 0;
        padding: 1.5rem;
        border-radius: 8px;
    }
    
    .demo-section h2 {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }
    
    .demo-section p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .iframe-container {
        height: 500px;
        border-radius: 6px;
    }
    
    /* 调整移动端的触摸目标大小 */
    .iframe-container iframe {
        min-height: 44px; /* WCAG触摸目标最小尺寸 */
    }
}

@media (max-width: 576px) {
    .demo-section {
        margin: 1.2rem 0;
        padding: 1.2rem;
    }
    
    .demo-section h2 {
        font-size: 1.25rem;
    }
    
    .iframe-container {
        height: 480px;
    }
}

@media (max-width: 480px) {
    .demo-section {
        margin: 1rem 0;
        padding: 1rem;
        border-radius: 6px;
    }
    
    .demo-section h2 {
        font-size: 1.2rem;
    }
    
    .demo-section p {
        font-size: 0.85rem;
    }
    
    .iframe-container {
        height: 450px;
    }
    
    .spinner {
        width: 32px;
        height: 32px;
        border-width: 3px;
    }
    
    .loading-text {
        font-size: 0.8rem;
    }
}

@media (max-width: 360px) {
    .demo-section {
        margin: 0.8rem 0;
        padding: 0.8rem;
    }
    
    .demo-section h2 {
        font-size: 1.1rem;
    }
    
    .iframe-container {
        height: 400px;
    }
    
    .spinner {
        width: 28px;
        height: 28px;
        border-width: 2px;
    }
}

/* Landscape orientation adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    .iframe-container {
        height: 350px;
    }
    
    .demo-section {
        padding: 1rem;
    }
}

/* Print styles */
@media print {
    .demo-section {
        break-inside: avoid;
        background: white !important;
        border: 1px solid #000;
        box-shadow: none;
    }
    
    .iframe-container {
        display: none;
    }
    
    .demo-section::after {
        content: "交互式演示请访问在线版本";
        display: block;
        text-align: center;
        padding: 2rem;
        font-style: italic;
        color: #666;
    }
}

/* Steps Container Styles */
.steps-container {
    display: grid;
    gap: 1.5rem;
    margin: 2rem 0;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border-left: 4px solid #007bff;
    transition: all 0.3s ease;
}

.step-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.15);
}

.step-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
}

.step-content h3 {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
    font-size: 1.1rem;
}

.step-content p {
    margin: 0;
    color: #5a6c7d;
    line-height: 1.6;
}

/* Features Grid Styles */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-card h3 {
    color: #2c3e50;
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
}

.feature-card p {
    color: #5a6c7d;
    line-height: 1.6;
    margin: 0;
}

/* CTA Section Styles */
.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 2rem;
    border-radius: 16px;
    text-align: center;
    margin: 3rem 0;
}

.cta-section h2 {
    color: white;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.cta-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.cta-primary, .cta-secondary, .cta-tertiary {
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    min-width: 160px;
}

.cta-primary {
    background: #28a745;
    color: white;
}

.cta-primary:hover {
    background: #218838;
    transform: translateY(-2px);
}

.cta-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.cta-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

.cta-tertiary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.cta-tertiary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.cta-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Intro Content Styles - 简约现代风格 */
.intro-content {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    margin: 2rem 0;
    border: 1px solid rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(10px);
    position: relative;
}


.intro-question {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 1.2rem 0;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.intro-description {
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--text-secondary);
    margin: 0 0 2rem 0;
    font-weight: 400;
}

.intro-highlights {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 0;
}

.highlight-item {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-primary);
    padding: 0.75rem 1.2rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
    text-align: center;
    min-height: 48px;
}

.highlight-item:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

/* Benefits Grid Styles */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.benefits-grid .benefit-item {
    display: block;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-color);
}

.benefits-grid .benefit-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.benefits-grid .benefit-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.8rem 0;
    color: var(--text-primary);
    line-height: 1.3;
}

.benefits-grid .benefit-item p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-secondary);
    margin: 0;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.benefit-icon {
    color: #28a745;
    font-weight: bold;
}

/* Benefits List Styles */
.benefits-list {
    display: grid;
    gap: 1.5rem;
    margin: 2rem 0;
}

.benefit-item-large {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.benefit-item-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.benefit-icon-large {
    flex-shrink: 0;
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
}

.benefit-content h3 {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
    font-size: 1.2rem;
}

.benefit-content p {
    margin: 0;
    color: #5a6c7d;
    line-height: 1.6;
}

.section-intro {
    font-size: 1.1rem;
    color: #5a6c7d;
    margin-bottom: 2rem;
    text-align: center;
}

/* Responsive Design for New Elements */
@media (max-width: 768px) {
    .steps-container {
        gap: 1rem;
    }
    
    .step-item {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }
    
    .step-number {
        align-self: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .cta-section {
        padding: 2rem 1rem;
    }
    
    .cta-section h2 {
        font-size: 1.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-primary, .cta-secondary, .cta-tertiary {
        width: 100%;
        max-width: 280px;
    }
    
    .cta-benefits {
        flex-direction: column;
        align-items: center;
    }
    
    .benefit-item-large {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .benefit-icon-large {
        align-self: center;
    }
    
/* Benefits Grid Mobile Optimization */
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin: 1.5rem 0;
    }
    
    .benefits-grid .benefit-item {
        padding: 1.2rem;
    }
    
    .benefits-grid .benefit-item h3 {
        font-size: 1rem;
    }
    
    .benefits-grid .benefit-item p {
        font-size: 0.85rem;
    }
    
    /* Intro Content Mobile Optimization - 简约响应式 */
    .intro-content {
        padding: 2rem 1.5rem;
        margin: 1.5rem 0;
    }
    
    .intro-question {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .intro-description {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .intro-highlights {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .highlight-item {
        font-size: 0.85rem;
        padding: 0.6rem 1rem;
        min-height: 44px;
    }
}

/* Container queries support (progressive enhancement) */
@supports (container-type: inline-size) {
    .demo-section {
        container-type: inline-size;
    }
    
    @container (max-width: 600px) {
        .iframe-container {
            height: 450px;
        }
    }
    
    @container (max-width: 400px) {
        .iframe-container {
            height: 400px;
        }
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .demo-section {
        border: 2px solid #000;
        background: #fff;
    }
    
    .iframe-container {
        border: 2px solid #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .demo-section::before,
    .spinner,
    .iframe-container {
        animation: none;
    }
    
    .iframe-container:hover {
        transform: none;
    }
}
