/* 設定頁面樣式 */
    .settings-section {
        margin: 16px 0;
    }

    .section-header {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 0 16px 8px;
        color: #333;
    }

    .section-header h3 {
        margin: 0;
        font-size: 16px;
        font-weight: 600;
    }

    .section-header .material-symbols-outlined {
        font-size: 20px;
        color: #666;
    }

    .settings-card {
        background: white;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .setting-item {
        padding: 16px 0;
        border-bottom: 1px solid #f0f0f0;
    }

    .setting-item:last-child {
        border-bottom: none;
    }

    .setting-item h4 {
        margin: 0 0 8px 0;
        font-size: 14px;
        font-weight: 600;
        color: #333;
    }

    .setting-description {
        margin: 4px 0 12px 0;
        font-size: 12px;
        color: #666;
        line-height: 1.4;
    }

    /* 筆刷粗細設定 */
    .brush-size-setting {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 12px;
    }

    .size-slider {
        flex: 1;
        height: 6px;
        background: #ddd;
        border-radius: 3px;
        outline: none;
        -webkit-appearance: none;
    }

    .size-slider::-webkit-slider-thumb {
        -webkit-appearance: none;
        width: 20px;
        height: 20px;
        background: #4285F4;
        border-radius: 50%;
        cursor: pointer;
    }

    .size-display {
        font-size: 12px;
        color: #666;
        min-width: 40px;
        text-align: center;
    }

    .brush-preview {
        width: 100%;
        height: 40px;
        background: #f9f9f9;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
    }

    /* 筆刷類型設定 */
    .brush-types {
        display: flex;
        gap: 12px;
    }

    .brush-type-btn {
        width: 40px;
        height: 40px;
        border: 2px solid #ddd;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        font-size: 16px;
        transition: all 0.3s ease;
        background: white;
    }

    .brush-type-btn:hover {
        border-color: #4285F4;
    }

    .brush-type-btn.selected {
        border-color: #4285F4;
        background: #e3f2fd;
        color: #4285F4;
    }

    /* 顏色設定 */
    .color-options {
        display: flex;
        gap: 8px;
        margin-bottom: 12px;
        flex-wrap: wrap;
    }

    .color-btn {
        width: 36px;
        height: 36px;
        border: 3px solid #ddd;
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.3s ease;
        position: relative;
    }

    .color-btn:hover {
        transform: scale(1.1);
    }

    .color-btn.selected {
        border-color: #333;
        transform: scale(1.1);
    }

    .color-btn.selected::after {
        content: '✓';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        color: white;
        font-weight: bold;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    }

    .custom-color-picker {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-top: 8px;
    }

    .custom-color-picker label {
        font-size: 12px;
        color: #666;
    }

    .custom-color-picker input[type="color"] {
        width: 40px;
        height: 30px;
        border: none;
        border-radius: 4px;
        cursor: pointer;
    }

    /* 切換開關 */
    .toggle-setting {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .toggle-info p {
        margin: 4px 0 0 0;
        font-size: 12px;
        color: #666;
    }

    .toggle-switch {
        position: relative;
        display: inline-block;
        width: 50px;
        height: 28px;
    }

    .toggle-switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

    .slider {
        position: absolute;
        cursor: pointer;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: #ccc;
        transition: .4s;
        border-radius: 28px;
    }

    .slider:before {
        position: absolute;
        content: "";
        height: 20px;
        width: 20px;
        left: 4px;
        bottom: 4px;
        background-color: white;
        transition: .4s;
        border-radius: 50%;
    }

    input:checked+.slider {
        background-color: #4285F4;
    }

    input:checked+.slider:before {
        transform: translateX(22px);
    }

    /* 預覽畫布 */
    .preview-canvas-container {
        text-align: center;
        position: relative;
    }

    #previewCanvas {
        border: 2px solid #ddd;
        border-radius: 8px;
        cursor: crosshair;
        background: white;
    }

    .preview-instructions {
        font-size: 12px;
        color: #666;
        margin-top: 8px;
    }

    /* 保存狀態提示 */
    .save-status {
        position: fixed;
        top: 20px;
        right: 20px;
        background: #4285F4;
        color: white;
        padding: 8px 16px;
        border-radius: 20px;
        font-size: 12px;
        z-index: 1000;
        transform: translateX(100px);
        opacity: 0;
        transition: all 0.3s ease;
    }

    .save-status.show {
        transform: translateX(0);
        opacity: 1;
    }

    .save-status.success {
        background: #34A853;
    }

    .theme-options {
        display: flex;
        gap: 12px;
    }

    /* 主題按鈕 */
    .theme-btn {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        padding: 12px;
        border: 2px solid #ddd;
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.3s ease;
        background: white;
    }

    .dark-mode .theme-btn {
        background: var(--bg-card);
        border-color: var(--border-color);
    }

    .theme-btn:hover {
        border-color: #4285F4;
    }

    .theme-btn.selected {
        border-color: #4285F4;
        background: #e3f2fd;
    }

    .dark-mode .theme-btn.selected {
        background: #1565c0;
    }

    .theme-btn span:last-child {
        font-size: 12px;
    }