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

body {
    font-family: 'Microsoft JhengHei', Arial, sans-serif;
    background:
        linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(20, 20, 20, 0.8) 100%),
        url('data:image/svg+xml,\
        <svg width="1920" height="1080" xmlns="http://www.w3.org/2000/svg">\
            <defs>\
                <linearGradient id="grad1" x1="0%25" y1="0%25" x2="100%25" y2="100%25">\
                    <stop offset="0%25" style="stop-color:%23dc0000;stop-opacity:0.1" />\
                    <stop offset="25%25" style="stop-color:%23ff6b00;stop-opacity:0.1" />\
                    <stop offset="50%25" style="stop-color:%23000000;stop-opacity:0.2" />\
                    <stop offset="75%25" style="stop-color:%230066b2;stop-opacity:0.1" />\
                    <stop offset="100%25" style="stop-color:%23c00000;stop-opacity:0.1" />\
                </linearGradient>\
            </defs>\
            <rect width="1920" height="1080" fill="url(%23grad1)"/>\
            <!-- 法拉利風格跑車 -->\
            <path d="M 200 400 Q 250 380 350 380 L 450 380 Q 500 380 520 400 L 540 450 L 180 450 Z" fill="%23dc0000" opacity="0.15"/>\
            <circle cx="250" cy="450" r="25" fill="%23333" opacity="0.2"/>\
            <circle cx="490" cy="450" r="25" fill="%23333" opacity="0.2"/>\
            <!-- 保時捷風格跑車 -->\
            <path d="M 800 350 Q 850 330 950 330 L 1050 330 Q 1100 330 1120 350 L 1140 400 L 780 400 Z" fill="%23ffcc00" opacity="0.12"/>\
            <circle cx="850" cy="400" r="25" fill="%23333" opacity="0.2"/>\
            <circle cx="1090" cy="400" r="25" fill="%23333" opacity="0.2"/>\
            <!-- 賓士風格豪華車 -->\
            <path d="M 1300 500 Q 1350 480 1450 480 L 1600 480 Q 1650 480 1670 500 L 1690 550 L 1280 550 Z" fill="%23c0c0c0" opacity="0.15"/>\
            <circle cx="1360" cy="550" r="28" fill="%23333" opacity="0.2"/>\
            <circle cx="1630" cy="550" r="28" fill="%23333" opacity="0.2"/>\
            <!-- 麥拉倫風格跑車 -->\
            <path d="M 400 700 Q 450 680 550 680 L 650 680 Q 700 680 720 700 L 740 750 L 380 750 Z" fill="%23ff6b00" opacity="0.13"/>\
            <circle cx="450" cy="750" r="24" fill="%23333" opacity="0.2"/>\
            <circle cx="690" cy="750" r="24" fill="%23333" opacity="0.2"/>\
            <!-- BMW風格跑車 -->\
            <path d="M 1100 650 Q 1150 630 1250 630 L 1350 630 Q 1400 630 1420 650 L 1440 700 L 1080 700 Z" fill="%230066b2" opacity="0.14"/>\
            <circle cx="1150" cy="700" r="26" fill="%23333" opacity="0.2"/>\
            <circle cx="1390" cy="700" r="26" fill="%23333" opacity="0.2"/>\
            <!-- 裝飾線條 -->\
            <line x1="0" y1="200" x2="1920" y2="250" stroke="%23fff" stroke-width="1" opacity="0.05"/>\
            <line x1="0" y1="800" x2="1920" y2="850" stroke="%23fff" stroke-width="1" opacity="0.05"/>\
        </svg>');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

/* 動態光暈效果 */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 20% 50%, rgba(220, 0, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(0, 102, 178, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(255, 204, 0, 0.08) 0%, transparent 50%);
    animation: rotateGradient 20s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes rotateGradient {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 450px;
}

.card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    overflow: hidden;
    border: 3px solid #ffd700;
    backdrop-filter: blur(10px);
    position: relative;
}

/* 卡片頂部光澤效果 */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(180deg,
        rgba(255, 215, 0, 0.1) 0%,
        transparent 100%);
    pointer-events: none;
    z-index: 1;
}

/* 品牌展示區 */
.brand-showcase {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 25px 20px;
    text-align: center;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.brand-showcase::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.brand-title {
    font-size: 32px;
    font-weight: bold;
    color: #ffd700;
    text-shadow:
        0 0 10px rgba(255, 215, 0, 0.5),
        0 0 20px rgba(255, 215, 0, 0.3),
        2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 8px;
    letter-spacing: 2px;
}

.brand-subtitle {
    font-size: 13px;
    color: #c0c0c0;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

/* 汽車照片輪播 */
.car-carousel {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin-top: 20px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.car-slides {
    position: relative;
    width: 100%;
    height: 180px;
}

.car-slide {
    display: none;
    position: relative;
    width: 100%;
    height: 180px;
    animation: fadeIn 0.8s;
}

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

.car-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.car-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    color: #ffd700;
    padding: 15px 20px 10px;
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

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

/* 輪播控制按鈕 */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: #ffd700;
    border: 2px solid #ffd700;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    z-index: 10;
    transition: all 0.3s;
    border-radius: 3px;
}

.carousel-btn:hover {
    background: rgba(255, 215, 0, 0.9);
    color: #000;
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

/* 輪播指示器 */
.carousel-dots {
    text-align: center;
    padding: 12px 0 5px;
    background: rgba(0, 0, 0, 0.3);
}

.dot {
    height: 10px;
    width: 10px;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.3);
    border: 1px solid #ffd700;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s;
}

.dot:hover,
.dot.active {
    background-color: #ffd700;
    transform: scale(1.3);
    box-shadow: 0 0 8px #ffd700;
}

/* 標籤切換 */
.tabs {
    display: flex;
    background: linear-gradient(180deg, #fff9e6 0%, #fffbf0 100%);
    padding: 15px 20px 0;
    position: relative;
    z-index: 2;
    border-bottom: 2px solid rgba(255, 215, 0, 0.2);
}

.tab {
    flex: 1;
    background: transparent;
    border: none;
    padding: 15px 20px;
    font-size: 18px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.tab.active {
    color: #333;
    border-bottom: 3px solid #ff8c00;
}

.tab:hover {
    color: #666;
}

/* 快速估價 - 淺藍色樣式 */
.tab[data-tab="sell"] {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white !important;
    border-radius: 8px;
    margin-right: 10px;
    border-bottom: none !important;
    box-shadow: 0 4px 15px rgba(23, 162, 184, 0.4);
    transition: all 0.3s ease;
}

.tab[data-tab="sell"]:hover {
    background: linear-gradient(135deg, #138496 0%, #117a8b 100%);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(23, 162, 184, 0.5);
}

.tab[data-tab="sell"].active {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white !important;
    border-bottom: none !important;
}

/* 我要估車 - 紅底醒目樣式 */
.tab[data-tab="estimate"] {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white !important;
    border-radius: 8px;
    margin-left: 10px;
    border-bottom: none !important;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4);
    transition: all 0.3s ease;
}

.tab[data-tab="estimate"]:hover {
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.5);
}

.tab[data-tab="estimate"].active {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white !important;
    border-bottom: none !important;
}

/* 表單容器 */
.form-container {
    padding: 30px 25px;
    background: linear-gradient(180deg, #fffbf0 0%, #fff9e6 100%);
    position: relative;
    z-index: 2;
}

/* 表單組件 */
.form-group {
    margin-bottom: 20px;
}

.form-group select,
.form-group input[type="month"],
.form-group input[type="number"],
.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    background: white;
    transition: border-color 0.3s;
}

.form-group select:focus,
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff8c00;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
    font-size: 15px;
}

/* 必填標記 */
.required {
    color: #ff0000;
    margin-left: 3px;
}

/* 車輛配備選項 */
.equipment-checkboxes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 10px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    padding: 10px;
    background: #f8f8f8;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: normal;
}

.checkbox-item:hover {
    background: #fff;
    border-color: #ff8c00;
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    cursor: pointer;
    accent-color: #ff8c00;
}

.checkbox-item input[type="checkbox"]:checked + span {
    color: #ff8c00;
    font-weight: bold;
}

.checkbox-item span {
    font-size: 14px;
    color: #333;
}

/* 手機版調整 */
@media (max-width: 480px) {
    .equipment-checkboxes {
        grid-template-columns: 1fr;
    }
}

/* ==================== 車款搜尋功能 ==================== */
.car-search-container {
    position: relative;
    margin-bottom: 10px;
}

.car-search-input {
    width: 100%;
    padding: 14px 15px;
    border: 2px solid #17a2b8;
    border-radius: 10px;
    font-size: 16px;
    background: linear-gradient(135deg, #f0faff 0%, #e8f7fc 100%);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(23, 162, 184, 0.15);
}

.car-search-input:focus {
    outline: none;
    border-color: #138496;
    background: white;
    box-shadow: 0 4px 15px rgba(23, 162, 184, 0.25);
}

.car-search-input::placeholder {
    color: #666;
    font-size: 14px;
}

.search-result-count {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #17a2b8;
    font-weight: 600;
    background: white;
    padding: 2px 8px;
    border-radius: 10px;
    display: none;
}

.search-result-count.active {
    display: block;
}

/* 搜尋時選單高亮匹配項 */
#carBrand option.search-match {
    background-color: #fff3cd;
    font-weight: bold;
}

#carBrand option.search-hidden {
    display: none;
}

/* 無搜尋結果提示 */
.no-search-result {
    text-align: center;
    padding: 15px;
    color: #dc3545;
    font-size: 14px;
    background: #fff5f5;
    border-radius: 8px;
    margin-top: 5px;
    display: none;
}

.no-search-result.active {
    display: block;
}

.required-mark {
    color: #ff0000;
    font-size: 14px;
    display: block;
    text-align: right;
    margin-bottom: 15px;
}

/* 表單項目標題 */
.form-section-title {
    margin-bottom: 10px;
}

/* 表單區段標題 */
.form-section-header {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin: 25px 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #ff8c00;
}

.form-section-header:first-of-type {
    margin-top: 5px;
}

/* 按鈕組 */
.button-group {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

/* 重新填寫按鈕 */
.reset-btn {
    flex: 1;
    padding: 18px;
    background: linear-gradient(135deg, #999 0%, #777 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.reset-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #888 0%, #666 100%);
}

.reset-btn:active {
    transform: translateY(0);
}

/* 帶單位的輸入框 */
.input-with-unit {
    position: relative;
}

.input-with-unit input {
    padding-right: 70px;
}

.unit {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 16px;
}

/* 提交按鈕 */
.submit-btn {
    flex: 1;
    padding: 18px;
    background: linear-gradient(135deg, #ff8c00 0%, #ff6b00 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 140, 0, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

/* 隱藏類 */
.hidden {
    display: none !important;
}

/* 估價結果區域 */
.result-section {
    margin-top: 20px;
    animation: fadeIn 0.5s;
}

.result-section h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 20px;
}

.result-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.result-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.result-item .label {
    color: #666;
    font-weight: 500;
}

.result-item .value {
    color: #333;
    font-weight: bold;
}

.result-item.price .value {
    color: #ff8c00;
    font-size: 20px;
}

/* LINE 官方帳號區塊 */
.line-contact-section {
    margin-top: 20px;
}

.line-divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.line-divider::before,
.line-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: #ddd;
}

.line-divider::before {
    left: 0;
}

.line-divider::after {
    right: 0;
}

.line-divider span {
    background: #fff9e6;
    padding: 0 10px;
    color: #999;
    font-size: 14px;
}

/* 快速聯絡區 */
.quick-contact-section {
    margin-top: 25px;
}

.contact-divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.contact-divider::before,
.contact-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 35%;
    height: 1px;
    background: linear-gradient(to right, transparent, #ddd, transparent);
}

.contact-divider::before {
    left: 0;
}

.contact-divider::after {
    right: 0;
}

.contact-divider span {
    background: white;
    padding: 0 15px;
    color: #666;
    font-size: 14px;
}

/* 電話按鈕 */
.phone-contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #ff8c00 0%, #ff6b00 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.3);
    margin-bottom: 12px;
}

.phone-contact-btn:hover {
    background: linear-gradient(135deg, #ff7700 0%, #ff5500 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 140, 0, 0.4);
}

.phone-contact-btn svg {
    width: 24px;
    height: 24px;
}

/* LINE 按鈕 */
.line-contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px;
    background: #06C755;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(6, 199, 85, 0.3);
}

.line-contact-btn:hover {
    background: #05B04C;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 199, 85, 0.4);
}

.line-contact-btn svg {
    width: 24px;
    height: 24px;
}

/* 數據來源聲明 */
.data-source-note {
    margin-top: 25px;
    padding: 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid #ff8c00;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.note-title {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

.note-content {
    font-size: 12px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 8px;
}

.disclaimer {
    font-size: 11px;
    color: #d63031;
    font-weight: 500;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #ddd;
}

/* 操作按鈕 */
.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.line-btn,
.consult-btn,
.recalculate-btn {
    flex: 1;
    min-width: calc(50% - 5px);
    padding: 15px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.line-btn {
    background: #06C755;
    color: white;
    box-shadow: 0 4px 15px rgba(6, 199, 85, 0.3);
}

.line-btn:hover {
    background: #05B04C;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 199, 85, 0.4);
}

.consult-btn {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.consult-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.recalculate-btn {
    background: white;
    color: #666;
    border: 2px solid #ddd;
    flex-basis: 100%;
}

.recalculate-btn:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

/* 彈窗樣式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideIn 0.3s;
}

.modal-content h2 {
    margin-bottom: 20px;
    color: #333;
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    color: #999;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: #333;
}

/* 動畫 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== 線上客服系統 ==================== */

/* 客服小工具容器 */
.chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

/* 客服按鈕 */
.chat-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    border: none;
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(76, 175, 80, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s;
}

.chat-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(76, 175, 80, 0.5);
}

.chat-button svg {
    width: 28px;
    height: 28px;
}

/* 未讀訊息徽章 */
.chat-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #f44336;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    border: 2px solid white;
}

.chat-badge.hidden {
    display: none;
}

/* 聊天視窗 */
.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 360px;
    height: 550px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 聊天標題欄 */
.chat-header {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.agent-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    color: #4CAF50;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
}

.agent-info {
    display: flex;
    flex-direction: column;
}

.agent-name {
    font-weight: bold;
    font-size: 16px;
}

.agent-status {
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    opacity: 0.9;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.close-chat-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
}

.close-chat-btn:hover {
    opacity: 0.8;
}

/* 聊天訊息區 */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    background: #f5f5f5;
}

.message {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    animation: messageSlideIn 0.3s ease-out;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #4CAF50;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    flex-shrink: 0;
}

.user-message .message-avatar {
    background: #ff8c00;
}

.message-content {
    background: white;
    padding: 10px 15px;
    border-radius: 10px;
    max-width: 75%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.message-content p {
    margin: 5px 0;
    line-height: 1.5;
    color: #333;
}

.user-message {
    flex-direction: row-reverse;
}

.user-message .message-content {
    background: #ff8c00;
    color: white;
}

.message-time {
    font-size: 11px;
    color: #999;
    margin-top: 5px;
}

/* 快速回覆選項 */
.quick-replies {
    padding: 10px 15px;
    background: white;
    border-top: 1px solid #eee;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.quick-reply-btn {
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 8px 15px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
    color: #333;
}

.quick-reply-btn:hover {
    background: #e0e0e0;
    border-color: #ccc;
}

/* 輸入區 */
.chat-input-container {
    display: flex;
    padding: 15px;
    background: white;
    border-top: 1px solid #eee;
    gap: 10px;
}

.chat-input {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.chat-input:focus {
    border-color: #4CAF50;
}

.send-message-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #4CAF50;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.send-message-btn:hover {
    background: #45a049;
    transform: scale(1.05);
}

/* 快速留單按鈕 */
.quick-contact-btn {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
    color: white;
    font-weight: 600;
}

.quick-contact-btn:hover {
    background: linear-gradient(135deg, #FF5252 0%, #FF7043 100%);
    transform: translateY(-2px);
}

/* 快速留單表單 */
.quick-contact-form {
    background: white;
    padding: 20px;
    border-top: 1px solid #eee;
    animation: slideDown 0.3s ease;
}

.quick-contact-form.hidden {
    display: none;
}

.quick-contact-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.quick-contact-header h4 {
    margin: 0;
    color: #333;
    font-size: 16px;
}

.close-contact-form {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
}

.close-contact-form:hover {
    color: #333;
}

.quick-contact-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quick-contact-body input {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.quick-contact-body input:focus {
    border-color: #4CAF50;
}

.submit-quick-contact {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 5px;
}

.submit-quick-contact:hover {
    background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 響應式設計 */
@media (max-width: 480px) {
    .card {
        border-radius: 15px;
    }

    .form-container {
        padding: 20px 15px;
    }

    .tab {
        font-size: 16px;
        padding: 12px 15px;
    }

    .action-buttons {
        flex-direction: column;
    }

    /* 客服響應式調整 */
    .chat-window {
        width: calc(100vw - 40px);
        height: calc(100vh - 120px);
        bottom: 80px;
        right: -10px;
    }

    .chat-widget {
        right: 10px;
        bottom: 10px;
    }
}

/* ==================== 數據來源說明區域 ==================== */
.data-source-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 15px 20px;
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
    animation: fadeInUp 0.6s ease-out;
}

.data-source-icon {
    font-size: 28px;
    line-height: 1;
    flex-shrink: 0;
}

.data-source-text {
    color: white;
    font-size: 14px;
    line-height: 1.6;
}

.data-source-text strong {
    display: block;
    font-size: 15px;
    margin-bottom: 4px;
    font-weight: 600;
}

.source-list {
    opacity: 0.95;
    font-size: 13px;
}

/* 手機版樣式 */
@media (max-width: 768px) {
    .data-source-info {
        padding: 12px 15px;
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .data-source-icon {
        font-size: 24px;
    }
    
    .data-source-text {
        font-size: 13px;
    }
    
    .data-source-text strong {
        font-size: 14px;
    }
    
    .source-list {
        font-size: 12px;
        display: block;
        margin-top: 2px;
    }
}

/* 淡入向上動畫 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== 車輛資訊顯示區域 ==================== */
.car-info-display {
    margin-top: 30px;
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    animation: fadeInUp 0.5s ease-out;
}

.info-title {
    color: #667eea;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

.car-info-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.car-info-table tr {
    border-bottom: 1px solid #e0e0e0;
}

.car-info-table tr:last-child {
    border-bottom: none;
}

.car-info-table td {
    padding: 12px 10px;
    text-align: center;
    font-size: 15px;
}

.info-label {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.new-price {
    font-size: 20px;
    font-weight: 700;
    color: #667eea;
    padding: 15px 10px !important;
}

/* ==================== 行情顯示區域 ==================== */
.price-display {
    margin-top: 25px;
    animation: fadeInUp 0.6s ease-out;
}

.price-section {
    background: #4a90e2;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.price-section:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(74, 144, 226, 0.4);
}

.retail-price {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.purchase-price {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.price-header {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.price-value {
    color: #fff;
    font-size: 36px;
    font-weight: 700;
    margin: 15px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: 2px;
}

.price-note {
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    margin-top: 10px;
    font-weight: 400;
}

/* ==================== 聯絡按鈕區域 ==================== */
.contact-buttons {
    margin-top: 25px;
    text-align: center;
}

.contact-btn {
    background: linear-gradient(135deg, #06c755 0%, #00b900 100%);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 16px 40px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(6, 199, 85, 0.3);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(6, 199, 85, 0.4);
}

.contact-btn:active {
    transform: translateY(0);
}

.btn-icon {
    font-size: 22px;
}

/* ==================== 手機版樣式調整 ==================== */
@media (max-width: 768px) {
    .car-info-display {
        padding: 20px 15px;
    }
    
    .info-title {
        font-size: 18px;
    }
    
    .car-info-table td {
        padding: 10px 8px;
        font-size: 13px;
    }
    
    .info-label {
        font-size: 12px;
    }
    
    .new-price {
        font-size: 18px;
        padding: 12px 8px !important;
    }
    
    .price-value {
        font-size: 28px;
    }
    
    .price-header {
        font-size: 16px;
    }
    
    .price-note {
        font-size: 12px;
    }
    
    .contact-btn {
        padding: 14px 30px;
        font-size: 16px;
        width: 100%;
    }
}

/* ==================== 模式切換控制 ==================== */
/* 快速估價模式：隱藏這些欄位 */
.mode-quick-estimate .full-estimate-only {
    display: none !important;
}

/* 我要估車模式：隱藏即時估價區域 */
.mode-full-estimate .quick-price-section {
    display: none !important;
}

/* 我要估車模式：顯示送出按鈕 */
.mode-full-estimate .submit-btn {
    display: block !important;
}

/* 快速估價模式：隱藏送出按鈕和重新填寫按鈕 */
.mode-quick-estimate .submit-btn {
    display: none !important;
}

.mode-quick-estimate #mainResetBtn {
    display: none !important;
}

/* 快速估價模式：顯示即時估價按鈕 */
.mode-quick-estimate .quick-estimate-btn {
    display: block !important;
}

/* 我要估車模式：隱藏即時估價按鈕 */
.mode-full-estimate .quick-estimate-btn {
    display: none !important;
}

/* 即時估價按鈕樣式 */
.quick-estimate-btn {
    flex: 1;
    padding: 18px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: normal;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(238, 90, 111, 0.3);
}

.quick-estimate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(238, 90, 111, 0.4);
    background: linear-gradient(135deg, #ee5a6f 0%, #ff6b6b 100%);
}

.quick-estimate-btn:active {
    transform: translateY(0);
}

/* ==================== 即時估價顯示區域樣式 ==================== */
.quick-price-section {
    margin-top: 30px;
}

.car-info-display {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    animation: fadeInUp 0.5s ease-out;
}

.info-title {
    color: #667eea;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

.car-info-table {
    width: 100%;
    border-collapse: collapse;
}

.car-info-table tr {
    border-bottom: 1px solid #e0e0e0;
}

.car-info-table tr:last-child {
    border-bottom: none;
}

.car-info-table td {
    padding: 12px 10px;
    text-align: center;
    font-size: 15px;
}

.info-label {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.new-price {
    font-size: 18px;
    font-weight: 700;
    color: #667eea;
}

.price-display {
    animation: fadeInUp 0.6s ease-out;
}

.price-section {
    background: #4a90e2;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
    transition: transform 0.3s ease;
}

.price-section:hover {
    transform: translateY(-3px);
}

.retail-price {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.purchase-price {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.price-header {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.price-value {
    color: #fff;
    font-size: 36px;
    font-weight: 700;
    margin: 15px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.price-note {
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    margin-top: 10px;
}

.contact-buttons {
    margin-top: 20px;
    text-align: center;
}

.contact-btn {
    background: linear-gradient(135deg, #06c755 0%, #00b900 100%);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 16px 40px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(6, 199, 85, 0.3);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(6, 199, 85, 0.4);
}

.btn-icon {
    font-size: 22px;
}

/* 手機版樣式 */
@media (max-width: 768px) {
    .car-info-display {
        padding: 20px 15px;
    }
    
    .info-title {
        font-size: 18px;
    }
    
    .car-info-table td {
        padding: 10px 8px;
        font-size: 13px;
    }
    
    .price-value {
        font-size: 28px;
    }
    
    .contact-btn {
        padding: 14px 30px;
        font-size: 16px;
        width: 100%;
    }
}

/* 重新填寫按鈕 */
.reset-btn {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%) !important;
    margin-top: 15px;
}

.reset-btn:hover {
    background: linear-gradient(135deg, #f5576c 0%, #f093fb 100%) !important;
}

/* 按鈕容器調整 */
.contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

@media (max-width: 768px) {
    .contact-buttons {
        gap: 10px;
    }
}

/* ==================== 熱門車款排行樣式 ==================== */

.popular-cars-section {
    background: linear-gradient(135deg, #fff9e6 0%, #fff3cd 100%);
    border-radius: 12px;
    margin: 15px;
    padding: 15px;
    border: 2px solid #ffc107;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.2);
}

.popular-cars-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #ffc107;
}

.fire-icon {
    font-size: 20px;
    animation: fireFlicker 0.8s ease-in-out infinite alternate;
}

@keyframes fireFlicker {
    0% {
        transform: scale(1) rotate(-5deg);
    }
    100% {
        transform: scale(1.1) rotate(5deg);
    }
}

.popular-title {
    font-size: 16px;
    font-weight: bold;
    color: #d63384;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.popular-badge {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 1px;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% {
        box-shadow: 0 0 5px rgba(255, 107, 107, 0.5);
    }
    50% {
        box-shadow: 0 0 15px rgba(255, 107, 107, 0.8);
    }
}

.popular-cars-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.popular-car-item {
    display: flex;
    align-items: center;
    gap: 6px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 20px;
    padding: 6px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.popular-car-item:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    border-color: transparent;
}

.popular-car-item:active {
    transform: translateY(0);
}

.popular-car-rank {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 11px;
    font-weight: bold;
}

.popular-car-item:nth-child(1) .popular-car-rank {
    background: linear-gradient(135deg, #ffd700 0%, #ffb347 100%);
    color: #8b4513;
}

.popular-car-item:nth-child(2) .popular-car-rank {
    background: linear-gradient(135deg, #c0c0c0 0%, #a8a8a8 100%);
    color: #4a4a4a;
}

.popular-car-item:nth-child(3) .popular-car-rank {
    background: linear-gradient(135deg, #cd7f32 0%, #b87333 100%);
    color: white;
}

.popular-car-item:nth-child(n+4) .popular-car-rank {
    background: #f0f0f0;
    color: #666;
}

.popular-car-item:hover .popular-car-rank {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

.popular-car-name {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

.popular-car-count {
    font-size: 11px;
    color: #6c757d;
    opacity: 0.8;
}

.popular-car-item:hover .popular-car-count {
    color: rgba(255, 255, 255, 0.8);
}

.popular-car-loading {
    width: 100%;
    text-align: center;
    color: #6c757d;
    padding: 10px;
    font-size: 13px;
}

/* 響應式調整 */
@media (max-width: 480px) {
    .popular-cars-section {
        margin: 10px;
        padding: 12px;
    }

    .popular-car-item {
        padding: 5px 10px;
        font-size: 12px;
    }

    .popular-car-name {
        max-width: 90px;
    }

    .popular-title {
        font-size: 14px;
    }
}

/* ==================== 照片上傳樣式 ==================== */

.photo-upload-section {
    margin-top: 10px;
}

.photo-upload-section label .optional-tag {
    font-size: 11px;
    color: #28a745;
    font-weight: normal;
    margin-left: 8px;
    padding: 2px 8px;
    background: #e8f5e9;
    border-radius: 10px;
}

.photo-upload-hint {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 10px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #17a2b8;
}

.photo-upload-area {
    border: 2px dashed #ccc;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fafafa;
    margin-bottom: 15px;
}

.photo-upload-area:hover {
    border-color: #667eea;
    background: #f0f4ff;
}

.photo-upload-area.drag-over {
    border-color: #28a745;
    background: #e8f5e9;
    transform: scale(1.02);
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.upload-icon {
    font-size: 40px;
    opacity: 0.7;
}

.upload-text {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.upload-formats {
    font-size: 11px;
    color: #999;
}

/* 照片預覽區 */
.photo-preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.photo-preview-item {
    position: relative;
    width: calc(33.33% - 7px);
    aspect-ratio: 4/3;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.photo-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-preview-item .remove-photo {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(220, 53, 69, 0.9);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 14px;
    line-height: 24px;
    text-align: center;
    transition: all 0.2s ease;
}

.photo-preview-item .remove-photo:hover {
    background: #c82333;
    transform: scale(1.1);
}

.photo-preview-item .photo-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 10px;
    text-align: center;
}

/* 上傳狀態 */
.photo-upload-status {
    font-size: 12px;
    margin-top: 8px;
    text-align: center;
}

.photo-upload-status.uploading {
    color: #17a2b8;
}

.photo-upload-status.success {
    color: #28a745;
}

.photo-upload-status.error {
    color: #dc3545;
}

/* 響應式 */
@media (max-width: 480px) {
    .photo-preview-item {
        width: calc(50% - 5px);
    }

    .photo-upload-area {
        padding: 20px 15px;
    }

    .upload-icon {
        font-size: 32px;
    }

    .upload-text {
        font-size: 13px;
    }
}
