body {
    font-family: 'Inter', 'Noto Sans TC', sans-serif;
    background-color: #f8fafc;
}

.filter-btn {
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    border-width: 1px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
    background-color: white;
    border-color: #d1d5db;
    color: #374151;
}

.filter-btn:not(.active):hover {
    border-color: #9ca3af;
    background-color: #f9fafb;
}

.filter-btn.active {
    background-color: #1f2937;
    color: white;
    border-color: #1f2937;
}

.plate-card.selected {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px #2563eb;
}

.plate-card.selected .plus-btn {
    background-color: #2563eb;
    color: white;
    transform: rotate(45deg);
}

.plus-btn {
    transition: all 0.2s ease-in-out;
}

.carousel-slide {
    display: none;
    animation: fadeIn 0.7s ease-in-out;
}

.carousel-slide.active {
    display: block;
}

.carousel-dot {
    cursor: pointer;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #d1d5db;
    transition: background-color 0.3s;
}

.carousel-dot.active {
    background-color: #3b82f6;
}

@keyframes fadeIn {
    from {
        opacity: 0.4;
    }
    to {
        opacity: 1;
    }
}

/* --- 新增功能樣式 --- */

/* iPhone 風格的切換開關 */
.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: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

input:checked + .slider {
    background-color: #2563eb;
}

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

/* 欄位數切換按鈕 */
.column-btn {
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    transition: background-color 0.2s, color 0.2s;
    background-color: transparent;
    color: #4b5563;
}

.column-btn.active {
    background-color: white;
    color: #1f2937;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
}

/* 使用 @media query 將字體調整樣式限定在手機版 */
@media (max-width: 767px) {
    #plate-results.cols-3 .plate-card .text-2xl {
        font-size: 1rem; /* 20px */
    }

    #plate-results.cols-3 .plate-card {
        padding: 0.75rem; /* 12px */
    }

    #plate-results.cols-3 .plate-card .plus-btn {
        width: 1.5rem; /* 24px */
        height: 1.5rem;
        font-size: 1.125rem;
    }

    #plate-results.cols-4 .plate-card .text-2xl {
        font-size: 0.8rem;
        letter-spacing: -0.025em;
    }

    #plate-results.cols-4 .plate-card .text-xs {
        font-size: 0.6rem;
    }

    #plate-results.cols-4 .plate-card {
        padding: 0.5rem;
    }

    #plate-results.cols-4 .plate-card .plus-btn {
        width: 1.0rem;
        height: 1.0rem;
        font-size: 1rem;
    }
}
