/* 重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8fafc;
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.navbar {
    background: #fff;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-brand h1 {
    font-size: 1.8rem;
    color: #2563eb;
    margin: 0;
}

.brand-subtitle {
    font-size: 0.85rem;
    color: #64748b;
    display: block;
    margin-top: -5px;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #64748b;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #2563eb;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #2563eb;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #64748b;
    transition: 0.3s;
}

/* 主要内容 */
.main-content {
    padding-top: 2rem;
}

/* 章节通用样式 */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #1e293b;
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-header p {
    font-size: 1.2rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

/* 转换器部分 */
.converter-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.converter-section .section-header h2,
.converter-section .section-header p {
    color: white;
}

.converter-wrapper {
    display: grid;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.converter-panel {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.panel-header h3 {
    color: #1e293b;
    font-size: 1.4rem;
    font-weight: 600;
}

.panel-tools {
    display: flex;
    gap: 0.5rem;
}

.btn-tool {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-tool:hover {
    background: #f1f5f9;
    transform: scale(1.1);
}

.markdown-input {
    width: 100%;
    height: 300px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
    background: #fafafa;
    transition: all 0.3s ease;
}

.markdown-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    background: white;
}

.input-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #64748b;
}

.converter-controls {
    text-align: center;
    padding: 2rem;
}

.convert-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    padding: 1rem 3rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

.convert-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
}

.convert-btn:active {
    transform: translateY(0);
}

.convert-btn.loading .btn-text {
    opacity: 0;
}

.convert-btn.loading .btn-loading {
    opacity: 1;
}

.btn-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.conversion-options {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.95rem;
    color: white;
}

.option input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
}

.option input[type="checkbox"]:checked+.checkmark {
    background: #10b981;
}

.option input[type="checkbox"]:checked+.checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.result-panel {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.result-content {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem;
    min-height: 200px;
    margin-bottom: 2rem;
    font-family: 'Georgia', serif;
    line-height: 1.8;
}

.result-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.download-btn {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

.secondary-btn {
    background: transparent;
    color: #64748b;
    border: 2px solid #e2e8f0;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.secondary-btn:hover {
    border-color: #2563eb;
    color: #2563eb;
}

/* 功能特色部分 */
.features-section {
    padding: 6rem 0;
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
}

.feature-card h3 {
    font-size: 1.4rem;
    color: #1e293b;
    margin-bottom: 1rem;
    font-weight: 600;
}

.feature-card p {
    color: #64748b;
    line-height: 1.7;
}

/* 关于我们部分 */
.about-section {
    padding: 6rem 0;
    background: #f8fafc;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text h3 {
    color: #1e293b;
    font-size: 1.6rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.about-text p {
    color: #64748b;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.about-text ul {
    list-style: none;
    padding: 0;
}

.about-text li {
    color: #64748b;
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.about-text li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

.stats-grid {
    display: grid;
    gap: 2rem;
}

.stat-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #64748b;
    font-size: 0.95rem;
}

/* 使用帮助部分 */
.help-section {
    padding: 6rem 0;
    background: white;
}

.help-content {
    max-width: 800px;
    margin: 0 auto;
}

.help-steps {
    margin-bottom: 4rem;
}

.step {
    display: flex;
    align-items: start;
    gap: 2rem;
    margin-bottom: 3rem;
}

.step-number {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h3 {
    color: #1e293b;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.step-content p {
    color: #64748b;
    line-height: 1.7;
}

.faq h3 {
    color: #1e293b;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    font-weight: 600;
    text-align: center;
}

.faq-item {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-item:hover {
    background: #f1f5f9;
}

.faq-question {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.faq-answer {
    color: #64748b;
    line-height: 1.7;
}

/* 页脚 */
.footer {
    background: #1e293b;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand h3 {
    color: #2563eb;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: #94a3b8;
    line-height: 1.6;
}

.footer-links h4 {
    color: white;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #2563eb;
}

.footer-info h4 {
    color: white;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-info p {
    color: #94a3b8;
    margin-bottom: 0.5rem;
}

/* 友情链接区域 */
.footer-links-section {
    margin: 2rem 0;
    padding: 2rem 0;
    border-top: 1px solid #334155;
    border-bottom: 1px solid #334155;
}

.footer-links-section h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-weight: 600;
    text-align: center;
}

.friend-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    max-width: 1000px;
    margin: 0 auto;
}

.friend-links a {
    background: rgba(37, 99, 235, 0.1);
    color: #94a3b8;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(37, 99, 235, 0.2);
    white-space: nowrap;
}

.friend-links a:hover {
    background: rgba(37, 99, 235, 0.2);
    color: #2563eb;
    border-color: #2563eb;
    transform: translateY(-1px);
}

/* 底部内容 */
.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #334155;
    color: #94a3b8;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-beian a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-beian a:hover {
    color: #2563eb;
}

/* 进度指示器 */
.progress-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(37, 99, 235, 0.1);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.progress-indicator.active {
    opacity: 1;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #2563eb, #10b981);
    width: 0%;
    transition: width 0.3s ease;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .section-header p {
        font-size: 1rem;
    }

    .converter-wrapper {
        grid-template-columns: 1fr;
    }

    .converter-panel {
        padding: 1.5rem;
    }

    .markdown-input {
        height: 250px;
    }

    .conversion-options {
        flex-direction: column;
        gap: 1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .step {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .result-actions {
        flex-direction: column;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .container {
        padding: 0 15px;
    }

    /* 友情链接移动端优化 */
    .friend-links {
        justify-content: center;
        gap: 0.5rem;
    }

    .friend-links a {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .nav-brand h1 {
        font-size: 1.5rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .converter-panel {
        padding: 1rem;
    }

    .feature-card {
        padding: 2rem 1.5rem;
    }

    .stat-item {
        padding: 1.5rem;
    }

    .convert-btn {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* 加载动画 */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading-spinner {
    border: 2px solid #f3f3f3;
    border-top: 2px solid #2563eb;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 10px;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 实用工具部分 */
.tools-section {
    padding: 6rem 0;
    background: #f8fafc;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.tool-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.tool-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.tool-card h3 {
    color: #1e293b;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.tool-card p {
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.tool-panel {
    margin-top: 1rem;
}

.tool-input {
    width: 100%;
    min-height: 120px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 14px;
    resize: vertical;
    margin-bottom: 1rem;
    transition: border-color 0.3s ease;
}

.tool-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.analysis-result {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #64748b;
}

.stat-row:last-child {
    margin-bottom: 0;
}

.stat-row strong {
    color: #2563eb;
    font-weight: 600;
}

.language-select {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 14px;
    background: white;
}

.format-btn,
.clean-btn {
    background: #2563eb;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
}

.format-btn:hover,
.clean-btn:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.clean-options {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.clean-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: #64748b;
}

.clean-option input[type="checkbox"] {
    accent-color: #2563eb;
}

.case-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.case-btn {
    background: #f1f5f9;
    color: #475569;
    border: 2px solid #e2e8f0;
    padding: 0.6rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.case-btn:hover {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

/* 模板库部分 */
.templates-section {
    padding: 6rem 0;
    background: white;
}

.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.template-card {
    background: #f8fafc;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid #e2e8f0;
}

.template-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-color: #2563eb;
}

.template-preview {
    padding: 1.5rem;
}

.template-preview h4 {
    color: #1e293b;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.template-content {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 12px;
    line-height: 1.6;
    border: 1px solid #e2e8f0;
}

.template-content code {
    color: #64748b;
    background: none;
    padding: 0;
}

.template-btn {
    width: 100%;
    background: #2563eb;
    color: white;
    border: none;
    padding: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-top: 1px solid #e2e8f0;
}

.template-btn:hover {
    background: #1d4ed8;
}

/* 教程部分 */
.tutorials-section {
    padding: 6rem 0;
    background: #f8fafc;
}

.tutorials-content {
    max-width: 900px;
    margin: 0 auto;
}

.tutorial-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.tutorial-tab {
    background: white;
    color: #64748b;
    border: 2px solid #e2e8f0;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tutorial-tab:hover,
.tutorial-tab.active {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

.tutorial-panels {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.tutorial-panel {
    display: none;
}

.tutorial-panel.active {
    display: block;
}

.tutorial-panel h3 {
    color: #1e293b;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

.tutorial-item {
    margin-bottom: 2.5rem;
}

.tutorial-item h4 {
    color: #1e293b;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.code-example {
    background: #f8fafc;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.code-example pre {
    margin: 0;
    padding: 1.5rem;
    background: #1e293b;
    color: #e2e8f0;
    overflow-x: auto;
}

.code-example code {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 14px;
    line-height: 1.6;
}

.tip-item {
    background: #f0f9ff;
    border-left: 4px solid #2563eb;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 0 8px 8px 0;
}

.tip-item h4 {
    color: #1e293b;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.tip-item p {
    color: #64748b;
    margin: 0;
    line-height: 1.6;
}

.example-item {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.example-item h4 {
    color: #1e293b;
    font-size: 1.1rem;
    margin: 0;
    font-weight: 600;
}

.load-example-btn {
    background: #10b981;
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.load-example-btn:hover {
    background: #059669;
    transform: translateY(-1px);
}

/* 响应式优化 */
@media (max-width: 768px) {
    .tools-grid {
        grid-template-columns: 1fr;
    }

    .templates-grid {
        grid-template-columns: 1fr;
    }

    .tutorial-nav {
        flex-direction: column;
        align-items: center;
    }

    .tutorial-tab {
        width: 100%;
        max-width: 200px;
        text-align: center;
    }

    .tutorials-content {
        padding: 0 1rem;
    }

    .tutorial-panels {
        padding: 1.5rem;
    }

    .case-buttons {
        grid-template-columns: 1fr;
    }

    .example-item {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}