* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg-color: #ffffff;
    --text-main: #111827;
    --primary-color: #4f46e5;
    --border-color: #e5e7eb;
    --ui-scale: 1.0;
}

body {
    font-family: 'Inter', 'Noto Sans TC', sans-serif;
    line-height: 1.6;
    background: #f9fafb;
    color: var(--text-main);
    font-size: calc(16px * var(--ui-scale));
}

.version-badge {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 12px;
    z-index: 1000;
}

.detail-nav {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.back-btn {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-container {
    max-width: 800px;
    width: 95%;
    margin: 0 auto 60px;
    background: white;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.detail-header h1 {
    font-size: calc(2rem * var(--ui-scale));
    margin-bottom: 24px;
    color: #111827;
    line-height: 1.3;
}

.detail-content {
    font-size: calc(1.125rem * var(--ui-scale));
    color: #374151;
    height: auto !important;
}

/* Responsive Image Scaling for Quill Content */
.ql-container.ql-snow {
    border: none !important;
    height: auto !important;
}

.ql-editor {
    padding: 0 !important;
    height: auto !important;
    overflow-y: visible !important;
}

.ql-editor img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 10px 0;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .detail-container {
        width: 100%;
        padding: 20px;
        border-radius: 0;
        margin-bottom: 0;
        box-shadow: none;
    }
    
    .detail-header h1 {
        font-size: 1.5rem;
    }
    
    .detail-nav {
        padding: 15px;
    }
}
