/* 博客文章页面样式 */

.article-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 120px 24px 60px;
}

.article-content {
    background: #ffffff;
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 
        0 12px 32px rgba(0, 0, 0, 0.12),
        0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(108, 117, 125, 0.1);
}

.dark-theme .article-content {
    background: #101218;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 12px 32px rgba(0, 0, 0, 0.3),
        0 4px 16px rgba(0, 0, 0, 0.2);
}

.article-header {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(108, 117, 125, 0.1);
}

.dark-theme .article-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.article-category {
    background: rgba(108, 117, 125, 0.1);
    color: var(--primary-color);
    padding: 0.4rem 1rem;
    border-radius: 999px;
    font-weight: 600;
}

.dark-theme .article-category {
    background: rgba(200, 16, 46, 0.15);
    color: #c8102e;
}

.article-date,
.article-reading-time {
    color: var(--gray-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dark-theme .article-date,
.dark-theme .article-reading-time {
    color: rgba(220, 220, 225, 0.65);
}

.article-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.dark-theme .article-title {
    color: #f5f5f5;
}

.article-excerpt {
    font-size: 1.15rem;
    color: var(--gray-color);
    line-height: 1.7;
}

.dark-theme .article-excerpt {
    color: rgba(220, 220, 225, 0.75);
}

.article-body {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--dark-color);
}

.dark-theme .article-body {
    color: #e5e5e5;
}

.article-section {
    margin-bottom: 2.5rem;
}

.article-section h2 {
    font-size: 1.8rem;
    margin-bottom: 1.25rem;
    color: var(--dark-color);
    position: relative;
    padding-left: 1rem;
}

.article-section h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.dark-theme .article-section h2 {
    color: #f5f5f5;
}

.dark-theme .article-section h2::before {
    background: #c8102e;
}

.article-section h3 {
    font-size: 1.4rem;
    margin: 1.5rem 0 1rem;
    color: var(--dark-color);
}

.dark-theme .article-section h3 {
    color: #f5f5f5;
}

.article-section h4 {
    font-size: 1.2rem;
    margin: 1.25rem 0 0.75rem;
    color: var(--dark-color);
}

.dark-theme .article-section h4 {
    color: #f5f5f5;
}

.article-section p {
    margin-bottom: 1rem;
    text-align: justify;
}

.article-section ul,
.article-section ol {
    margin: 1rem 0 1rem 1.5rem;
}

.article-section li {
    margin-bottom: 0.5rem;
}

.tip-box {
    background: rgba(108, 117, 125, 0.05);
    border-left: 4px solid var(--primary-color);
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 12px 12px 0;
}

.dark-theme .tip-box {
    background: rgba(200, 16, 46, 0.08);
    border-left-color: #c8102e;
}

.tip-box h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0;
    color: var(--primary-color);
}

.dark-theme .tip-box h4 {
    color: #c8102e;
}

.tool-highlight {
    background: rgba(108, 117, 125, 0.05);
    padding: 1.25rem;
    border-radius: 12px;
    margin: 1rem 0;
}

.dark-theme .tool-highlight {
    background: rgba(255, 255, 255, 0.05);
}

.tool-highlight h4 {
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.tool-list {
    list-style: none;
    margin-left: 0 !important;
}

.tool-list li {
    padding: 0.75rem 1rem;
    background: rgba(108, 117, 125, 0.05);
    border-radius: 8px;
    margin-bottom: 0.75rem;
    transition: var(--transition);
}

.tool-list li:hover {
    background: rgba(108, 117, 125, 0.1);
    transform: translateX(4px);
}

.dark-theme .tool-list li {
    background: rgba(255, 255, 255, 0.05);
}

.dark-theme .tool-list li:hover {
    background: rgba(255, 255, 255, 0.08);
}

.faq-item {
    margin: 1.5rem 0;
    padding: 1.25rem;
    background: rgba(108, 117, 125, 0.05);
    border-radius: 12px;
}

.dark-theme .faq-item {
    background: rgba(255, 255, 255, 0.05);
}

.faq-item h4 {
    color: var(--primary-color);
    margin-top: 0;
}

.dark-theme .faq-item h4 {
    color: #c8102e;
}

/* GitHub文章特殊样式 */
.github-article {
    position: relative;
}

.article-decoration {
    position: absolute;
    font-size: 2rem;
    opacity: 0.5;
    animation: floatDeco 5s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.dec-1 { top: 10%; left: 2%; animation-delay: 0s; }
.dec-2 { top: 30%; right: 3%; animation-delay: 1s; }
.dec-3 { top: 60%; left: 1%; animation-delay: 2s; }
.dec-4 { top: 80%; right: 2%; animation-delay: 0.5s; }

@keyframes floatDeco {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(10deg); }
}

/* 有趣的盒子样式 */
.fun-box {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(108, 117, 125, 0.08), rgba(108, 117, 125, 0.03));
    border-radius: 16px;
    margin-bottom: 1.5rem;
}

.dark-theme .fun-box {
    background: linear-gradient(135deg, rgba(200, 16, 46, 0.08), rgba(200, 16, 46, 0.03));
}

.fun-emoji {
    font-size: 2rem;
    animation: wave 2s ease-in-out infinite;
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(20deg); }
    75% { transform: rotate(-20deg); }
}

.pain-points {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
}

.pain-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(255, 193, 7, 0.1);
    border-radius: 12px;
    border-left: 4px solid #ffc107;
}

.dark-theme .pain-item {
    background: rgba(255, 193, 7, 0.08);
}

.pain-icon {
    font-size: 1.5rem;
}

.highlight-text {
    font-size: 1.1rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, rgba(200, 16, 46, 0.1), rgba(200, 16, 46, 0.05));
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.dark-theme .highlight-text {
    background: linear-gradient(135deg, rgba(200, 16, 46, 0.15), rgba(200, 16, 46, 0.05));
    border-left-color: #c8102e;
}

.highlight-emoji {
    font-size: 1.5rem;
}

/* 流程图 */
.flow-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem;
    background: rgba(108, 117, 125, 0.05);
    border-radius: 16px;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.dark-theme .flow-diagram {
    background: rgba(255, 255, 255, 0.05);
}

.flow-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.dark-theme .flow-item {
    background: #1a1a2e;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.flow-item.highlight {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.dark-theme .flow-item.highlight {
    background: linear-gradient(135deg, #c8102e, #1e2125);
}

.flow-icon {
    font-size: 2rem;
}

.flow-text {
    font-weight: 600;
    font-size: 0.9rem;
}

.flow-arrow {
    font-size: 1.5rem;
    color: var(--gray-color);
}

/* 章节编号 */
.chapter-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: 700;
    margin-right: 0.75rem;
}

.dark-theme .chapter-num {
    background: #c8102e;
}

.section-emoji {
    font-size: 1.3rem;
    margin-right: 0.5rem;
}

/* 对比盒子 */
.compare-box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.compare-item {
    padding: 1.5rem;
    border-radius: 16px;
}

.compare-item.bad {
    background: rgba(244, 67, 54, 0.08);
    border: 1px solid rgba(244, 67, 54, 0.2);
}

.compare-item.good {
    background: rgba(76, 175, 80, 0.08);
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.dark-theme .compare-item.bad {
    background: rgba(244, 67, 54, 0.1);
}

.dark-theme .compare-item.good {
    background: rgba(76, 175, 80, 0.1);
}

.compare-item h4 {
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.fun-tip {
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.08), rgba(156, 39, 176, 0.03)) !important;
    border-left: 4px solid #9c27b0 !important;
}

.dark-theme .fun-tip {
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.1), rgba(156, 39, 176, 0.05)) !important;
}

/* 步骤列表 */
.step-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
}

.step-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(108, 117, 125, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.step-item:hover {
    transform: translateX(8px);
    background: rgba(108, 117, 125, 0.08);
}

.dark-theme .step-item {
    background: rgba(255, 255, 255, 0.05);
}

.dark-theme .step-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.step-num {
    width: 2rem;
    height: 2rem;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.dark-theme .step-num {
    background: #c8102e;
}

.step-content {
    flex: 1;
}

.step-content p {
    margin: 0;
}

.warning-box {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(255, 152, 0, 0.1);
    border-radius: 10px;
    margin-top: 0.75rem;
    font-size: 0.9rem;
}

.dark-theme .warning-box {
    background: rgba(255, 152, 0, 0.08);
}

.tip-inline {
    padding: 0.75rem 1rem;
    background: rgba(33, 150, 243, 0.1);
    border-radius: 8px;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--gray-color);
}

.dark-theme .tip-inline {
    background: rgba(33, 150, 243, 0.08);
    color: rgba(220, 220, 225, 0.65);
}

/* 成功盒子 */
.success-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.15), rgba(76, 175, 80, 0.05));
    border-radius: 16px;
    margin: 1.5rem 0;
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.dark-theme .success-box {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(76, 175, 80, 0.05));
}

.success-box span {
    font-size: 2rem;
}

.success-box p {
    margin: 0;
    font-weight: 500;
}

/* 代码块 */
.code-block {
    margin: 1.5rem 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.code-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: #2d2d2d;
}

.code-lang {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #fff;
}

.code-title {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

.code-block pre {
    margin: 0;
    padding: 1.25rem;
    background: #1e1e1e;
    overflow-x: auto;
}

.code-block code {
    color: #e0e0e0;
    font-family: 'Fira Code', 'Consolas', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Git流程图 */
.git-flow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 2rem;
    background: rgba(108, 117, 125, 0.05);
    border-radius: 16px;
    margin: 1.5rem 0;
}

.dark-theme .git-flow {
    background: rgba(255, 255, 255, 0.05);
}

.git-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 1rem 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    min-width: 200px;
}

.dark-theme .git-step {
    background: #1a1a2e;
}

.git-step.highlight {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.dark-theme .git-step.highlight {
    background: linear-gradient(135deg, #c8102e, #1e2125);
}

.git-icon {
    font-size: 1.75rem;
}

.git-title {
    font-weight: 600;
}

.git-desc {
    font-size: 0.8rem;
    color: var(--gray-color);
}

.git-step.highlight .git-desc {
    color: rgba(255, 255, 255, 0.8);
}

.git-arrow {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
}

.dark-theme .git-arrow {
    color: #c8102e;
}

/* 技巧卡片 */
.trick-cards {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin: 1.5rem 0;
}

.trick-card {
    padding: 1.5rem;
    background: rgba(108, 117, 125, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(108, 117, 125, 0.1);
    position: relative;
}

.dark-theme .trick-card {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.trick-num {
    position: absolute;
    top: -12px;
    left: 20px;
    width: 2rem;
    height: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.dark-theme .trick-num {
    background: linear-gradient(135deg, #c8102e, #e61c3a);
}

.trick-card h4 {
    margin-top: 0.5rem;
    margin-bottom: 0.75rem;
    color: var(--dark-color);
}

.dark-theme .trick-card h4 {
    color: #f5f5f5;
}

.trick-card p {
    margin-bottom: 0.5rem;
}

.trick-card kbd {
    background: rgba(108, 117, 125, 0.15);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9rem;
}

.dark-theme .trick-card kbd {
    background: rgba(255, 255, 255, 0.15);
}

.trick-result {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(108, 117, 125, 0.08);
    border-radius: 8px;
    margin-top: 1rem;
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.dark-theme .trick-result {
    background: rgba(255, 255, 255, 0.08);
}

.trick-arrow {
    color: var(--gray-color);
}

.trick-highlight {
    color: var(--primary-color);
    font-weight: 600;
}

.dark-theme .trick-highlight {
    color: #c8102e;
}

/* 功能网格 */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    margin: 1.5rem 0;
}

.feature-item {
    padding: 1.5rem;
    background: rgba(108, 117, 125, 0.05);
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.dark-theme .feature-item {
    background: rgba(255, 255, 255, 0.05);
}

.dark-theme .feature-item:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.feature-item h4 {
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.dark-theme .feature-item h4 {
    color: #f5f5f5;
}

.feature-item p {
    font-size: 0.9rem;
    color: var(--gray-color);
    margin: 0;
}

.dark-theme .feature-item p {
    color: rgba(220, 220, 225, 0.65);
}

/* 冲突盒子 */
.conflict-box {
    padding: 1.5rem;
    background: rgba(244, 67, 54, 0.08);
    border-radius: 16px;
    margin: 1.5rem 0;
    border: 1px solid rgba(244, 67, 54, 0.2);
}

.dark-theme .conflict-box {
    background: rgba(244, 67, 54, 0.1);
}

.conflict-box h4 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.conflict-box pre {
    background: #1e1e1e;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
}

.conflict-box code {
    color: #e0e0e0;
    font-family: 'Fira Code', 'Consolas', monospace;
    font-size: 0.85rem;
}

/* 结尾区域 */
.ending-section {
    text-align: center;
}

.ending-box {
    padding: 2.5rem;
    background: linear-gradient(135deg, rgba(200, 16, 46, 0.1), rgba(200, 16, 46, 0.05));
    border-radius: 20px;
    border: 2px dashed rgba(200, 16, 46, 0.3);
}

.dark-theme .ending-box {
    background: linear-gradient(135deg, rgba(200, 16, 46, 0.15), rgba(200, 16, 46, 0.05));
    border-color: rgba(200, 16, 46, 0.4);
}

.ending-emoji {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: bounce 1s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.ending-box h3 {
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.dark-theme .ending-box h3 {
    color: #f5f5f5;
}

.ending-box p {
    margin-bottom: 0.75rem;
}

.ending-action {
    font-weight: 600;
    color: var(--primary-color);
}

.dark-theme .ending-action {
    color: #c8102e;
}

/* 响应式 */
@media (max-width: 768px) {
    .flow-diagram {
        flex-direction: column;
    }
    
    .flow-arrow {
        transform: rotate(90deg);
    }
    
    .article-decoration {
        font-size: 1.5rem;
        opacity: 0.3;
    }
    
    .compare-box {
        grid-template-columns: 1fr;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
}

/* 文章图片样式 */
.article-image-wrapper {
    margin: 1.5rem 0;
    text-align: center;
}

.article-image {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(108, 117, 125, 0.1);
    transition: all 0.3s ease;
}

.article-image:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.dark-theme .article-image {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark-theme .article-image:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.image-caption {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: var(--gray-color);
    font-style: italic;
}

.dark-theme .image-caption {
    color: rgba(220, 220, 225, 0.65);
}

/* 特殊步骤样式 */
.special-step {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.08), rgba(33, 150, 243, 0.03));
    border-radius: 16px;
    border: 1px dashed rgba(33, 150, 243, 0.3);
}

.dark-theme .special-step {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.1), rgba(33, 150, 243, 0.05));
    border-color: rgba(33, 150, 243, 0.4);
}

.special-step-header {
    margin-bottom: 1rem;
}

.special-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: white;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
}

.dark-theme .special-badge {
    background: linear-gradient(135deg, #42A5F5, #2196F3);
}

.special-step p {
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.dark-theme .special-step p {
    color: #e5e5e5;
}

/* 步骤与图片并排布局 */
.steps-with-image {
    display: flex;
    gap: 2rem;
    margin: 1.5rem 0;
    align-items: flex-start;
}

.steps-column {
    flex: 1;
    min-width: 0;
}

.image-column {
    flex: 1;
    min-width: 0;
}

/* 可点击图片样式 */
.clickable-image {
    position: relative;
    cursor: pointer;
    border-radius: 16px;
    overflow: hidden;
}

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

.clickable-image:hover .image-zoom-hint {
    opacity: 1;
}

.image-zoom-hint {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.image-zoom-hint i {
    font-size: 0.9rem;
}

/* 图片放大模态框 */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    box-sizing: border-box;
}

.image-modal.active {
    display: flex;
}

.image-modal img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.image-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* 响应式 */
@media (max-width: 768px) {
    .steps-with-image {
        flex-direction: column;
    }
    
    .image-column {
        order: -1;
    }
}

.article-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(108, 117, 125, 0.1);
    flex-wrap: wrap;
}

.dark-theme .article-actions {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.article-actions .btn {
    flex: 1;
    min-width: 200px;
}

.btn-full-width {
    width: 100%;
    max-width: 400px;
    padding: 1rem 2rem;
    font-size: 1.05rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.btn-full-width:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.dark-theme .btn-full-width:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .article-container {
        padding: 100px 16px 40px;
    }

    .article-content {
        padding: 2rem 1.5rem;
    }

    .article-title {
        font-size: 2rem;
    }

    .article-section h2 {
        font-size: 1.5rem;
    }

    .article-section h3 {
        font-size: 1.25rem;
    }

    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .article-actions {
        flex-direction: column;
        align-items: center;
    }

    .article-actions .btn {
        width: 100%;
    }

    .btn-full-width {
        max-width: 100%;
    }
}
