
/* 添加一些动画效果 */
.animate-fade-in {
    animation: fadeIn 0.6s ease-out;
}

.wp-video{
    width: 100% !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lazy {
    opacity: 0;
    transition: opacity 0.3s;
}

.scale-110 {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* 图片点击cursor */
.article-content img {
    cursor: zoom-in;
}

/* 阅读进度条样式 */
.reading-progress {
    transition: width 0.1s ease;
}
.article-content .prose {
    color: #e5e7eb;
    line-height: 1.75;
    max-width: none;
}

.article-content .prose h1,
.article-content .prose h2,
.article-content .prose h3,
.article-content .prose h4,
.article-content .prose h5,
.article-content .prose h6 {
    color: #ffffff;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.article-content .prose h1 {
    font-size: 2.25rem;
    line-height: 2.5rem;
    margin-top: 0;
}

.article-content .prose h2 {
    font-size: 1.875rem;
    line-height: 2.25rem;
    border-bottom: 2px solid #8b5cf6;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.article-content .prose h3 {
    font-size: 1.5rem;
    line-height: 2rem;
    color: #c084fc;
}

.article-content .prose h4 {
    font-size: 1.25rem;
    line-height: 1.75rem;
    color: #c084fc;
}

.article-content .prose p {
    margin-top: 1rem;
    margin-bottom: 1rem;
    color: #d1d5db;
}

.article-content .prose strong {
    color: #ffffff;
    font-weight: 600;
}

.article-content .prose em {
    color: #c084fc;
    font-style: italic;
}

.article-content .prose ul,
.article-content .prose ol {
    margin-top: 1rem;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.article-content .prose li {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    color: #d1d5db;
}

.article-content .prose ul > li {
    list-style-type: disc;
}

.article-content .prose ol > li {
    list-style-type: decimal;
}

.article-content .prose li::marker {
    color: #8b5cf6;
}

.article-content .prose table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid #4b5563;
    border-radius: 0.5rem;
    overflow: hidden;
}

.article-content .prose thead {
    background: linear-gradient(to right, #8b5cf6, #ec4899);
}

.article-content .prose th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    color: #ffffff;
    border-bottom: 1px solid #4b5563;
}

.article-content .prose td {
    padding: 0.75rem 1rem;
    color: #d1d5db;
    border-bottom: 1px solid #374151;
}

.article-content .prose tbody tr:nth-child(even) {
    background-color: rgba(107, 114, 128, 0.1);
}

.article-content .prose tbody tr:hover {
    background-color: rgba(139, 92, 246, 0.1);
    transition: background-color 0.2s ease;
}

.article-content .prose blockquote {
    border-left: 4px solid #8b5cf6;
    padding-left: 1rem;
    margin: 1.5rem 0;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 0 0.5rem 0.5rem 0;
    padding: 1rem;
}

.article-content .prose blockquote p {
    color: #c084fc;
    font-style: italic;
    margin: 0;
}

.article-content .prose code {
    background-color: rgba(139, 92, 246, 0.2);
    color: #c084fc;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-family: 'Courier New', monospace;
}

.article-content .prose pre {
    background-color: #1f2937;
    color: #e5e7eb;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 1rem 0;
    border: 1px solid #374151;
}

.article-content .prose pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.article-content .prose a {
    color: #8b5cf6;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.article-content .prose a:hover {
    color: #c084fc;
}

.article-content .prose img {
    border-radius: 0.5rem;
    margin: 1.5rem 0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.article-content .prose hr {
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, #8b5cf6, transparent);
    margin: 2rem 0;
}

/* 特殊样式 */
.article-content .prose .highlight {
    background: linear-gradient(120deg, rgba(139, 92, 246, 0.3) 0%, rgba(236, 72, 153, 0.3) 100%);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    color: #ffffff;
    font-weight: 500;
}

.article-content .prose .warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 0.5rem;
    padding: 1rem;
    margin: 1rem 0;
}

.article-content .prose .warning p {
    color: #fbbf24;
    margin: 0;
}

.article-content .prose .info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 0.5rem;
    padding: 1rem;
    margin: 1rem 0;
}

.article-content .prose .info p {
    color: #60a5fa;
    margin: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .article-content .prose h1 {
        font-size: 1.875rem;
        line-height: 2.25rem;
    }
    
    .article-content .prose h2 {
        font-size: 1.5rem;
        line-height: 2rem;
    }
    
    .article-content .prose h3 {
        font-size: 1.25rem;
        line-height: 1.75rem;
    }
    
    .article-content .prose table {
        font-size: 0.875rem;
    }
    
    .article-content .prose th,
    .article-content .prose td {
        padding: 0.5rem;
    }
    
    .article-content .prose pre {
        font-size: 0.875rem;
        padding: 0.75rem;
    }
}

/* Archives页面专用样式 */
html.archives .category-tree {
    max-height: none;
    overflow: visible;
}

html.archives .category-group {
    overflow: visible;
}

html.archives .category-item {
    width: 100%;
}

html.archives .category-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 0;
}

html.archives .category-link:hover {
    text-decoration: none;
}

html.archives .category-toggle {
    flex-shrink: 0;
    background: none;
    border: none;
    cursor: pointer;
    outline: none;
}

html.archives .category-children {
    overflow: visible;
}

html.archives .city-link.active span {
    color: white !important;
    font-weight: 600;
}

/* 相关门店区域样式 */
html.archives .related-stores .store-item {
    transition: all 0.3s ease;
}

html.archives .related-stores .store-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.15);
}

/* 移动端优化 */
@media (max-width: 1023px) {
    html.archives .category-tree {
        margin-bottom: 2rem;
    }
    
    html.archives .category-group {
        margin-bottom: 0.5rem;
    }
    
    html.archives .category-item {
        padding: 0.75rem;
    }
    
    html.archives .category-children {
        margin-left: 1rem;
        margin-top: 0.5rem;
    }
    
    html.archives .city-link {
        padding: 0.5rem;
        font-size: 0.875rem;
    }
    
    html.archives .related-stores .store-item {
        margin-bottom: 1rem;
    }
}

/* 平板端优化 */
@media (min-width: 768px) and (max-width: 1023px) {
    html.archives .article-content {
        margin-bottom: 2rem;
    }
}

/* 手机端优化 */
@media (max-width: 767px) {
    html.archives .article-content .p-6 {
        padding: 1rem;
    }
    
    html.archives .related-stores .store-item h4 {
        font-size: 1rem;
    }
    
    html.archives .related-stores .store-item img {
        width: 3rem;
        height: 3rem;
    }
}
