body {
    font-family: "Noto Sans TC", Arial, sans-serif;
    background: #f8f9fa;
    color: #222;
    margin: 0;
}

main {
    max-width: 700px;
    margin: 40px auto 0 auto;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 2rem;
}

header {
    text-align: center;
    margin-bottom: 2rem;
}

header h1 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

header p {
    color: #7f8c8d;
    margin-top: 0;
}

.form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.form-group label {
    min-width: 90px;
    font-weight: 500;
}

.form-group select, 
.form-group input {
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #ddd;
    font-size: 1rem;
    flex: 1;
    min-width: 200px;
}

.btn {
    margin-right: 10px;
    padding: 8px 20px;
    border-radius: 6px;
    border: none;
    background-color: #2b7cff;
    color: #fff;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn:hover {
    background: #1a5dcc;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

#order-list-section {
    margin-top: 2.5rem;
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

#order-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.shop-header {
    font-weight: bold;
    font-size: 1.2rem;
    margin: 1.5rem 0 0.8rem 0;
    padding: 0.5rem 0;
    border-bottom: 2px solid #f0f0f0;
    color: #2b7cff;
    display: flex;
    align-items: center;
}

#order-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.2s;
}

#order-list li:hover {
    background: #f9f9f9;
}

.item-total {
    color: #e74c3c;
    font-weight: bold;
    margin-left: 10px;
    white-space: nowrap;
}

.del-btn {
    background: none;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    font-size: 1rem;
    padding: 5px;
    margin-left: 10px;
    opacity: 0.7;
    transition: all 0.2s;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.del-btn:hover {
    opacity: 1;
    background: rgba(231, 76, 60, 0.1);
}

#order-summary {
    margin-top: 2rem;
    padding: 1.2rem;
    background: #f8f9fa;
    border-radius: 8px;
    font-weight: bold;
    text-align: right;
    font-size: 1.1rem;
    color: #2c3e50;
}

#share-tip {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    pointer-events: none;
}

#share-tip.show {
    opacity: 1;
    top: 20px;
}

button#copy-order-btn {
    background-color: #27ae60;
    margin-top: 10px;
}

button#copy-order-btn:hover {
    background-color: #219653;
}

/* 滑桿樣式 */
.slider-container {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #d3d3d3;
    outline: none;
    opacity: 0.7;
    -webkit-transition: .2s;
    transition: opacity .2s;
}

.slider:hover {
    opacity: 1;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #2b7cff;
    cursor: pointer;
}

.slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #2b7cff;
    cursor: pointer;
}

/* 響應式設計 */
@media (max-width: 600px) {
    main {
        margin: 20px 10px 0;
        padding: 1.2rem;
    }
    
    .form-group {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .form-group label {
        margin-bottom: 5px;
    }
    
    .form-group select,
    .form-group input {
        width: 100%;
        margin-left: 0;
    }
    
    .btn {
        width: 100%;
        margin: 5px 0;
    }
    
    #order-list li {
        flex-wrap: wrap;
    }
    
    .item-total {
        margin-left: auto;
    }

    #order-summary {
        margin-top: 1rem;
        font-weight: bold;
    }
    #share-tip {
        position: fixed;
        top: 20px;
        left: 50%;
        transform: translateX(-50%);
        background: #222;
        color: #fff;
        padding: 12px 24px;
        border-radius: 8px;
        z-index: 1000;
        font-size: 1rem;
    }
}
