* {
    padding: 0;
    margin: 0;
    border: 0;
    box-sizing: border-box;
}

body,
main {
    background: #fff !important;
    font-family: 'Noto Sans TC', 'Segoe UI', Arial, sans-serif;
    color: #222;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-size: 20px;
}

header {
    color: white;
    background: rgb(0, 0, 0);
    height: 110px;
    width: 100%;
    position: fixed;
    border: none;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
    padding: 30px;
    z-index: 1000;
    top: 0;
    left: 0;
}

header h1 {
    color: white;
    position: absolute;
    left: 120px;
    top: 0;
    line-height: 100px;
    background-image: url(images/logo1.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 215px auto;
    width: 210px;
    text-indent: -9999px;
}

header li {
    display: inline;
    margin-right: 5vw;
    /* 從4vw增加到5vw */
    padding: 0 10px;
    /* 新增左右內間距 */
}

header a {
    color: white;
    text-decoration: none;
    position: relative;
    padding: 8px 0;
    transition: color 0.3s ease;
}

header a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #808080;
    transition: width 0.3s ease;
}

header a:hover {
    color: #808080;
    text-decoration: none;
}

header a:hover:after {
    width: 100%;
}

nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 100px;
    width: 100%;
}

.menu-items {
    margin-right: 30px;
    display: flex;
    align-items: flex-start;
    position: static;
    line-height: normal;
    font-size: 20px;
    margin-top: -15px;
}

.menu-items.open {
    max-height: 300px;
}

.menu {
    display: none;
    background-color: transparent;
    color: white;
    font-size: 35px;
    position: absolute;
    top: 25px;
    left: 30px;
    border: none;
    cursor: pointer;
}

main {
    padding-top: 120px;
    /* 調整以適應 header 高度 110px + 邊框 */
    padding-bottom: 60px;
    background-color: #c2c2c2;
    flex: 1;
}

.form-title {
    font-size: 40px;
    color: #222;
    font-weight: 700;
    margin-bottom: 48px;
    letter-spacing: 2px;
    text-align: center;
    position: relative;
    padding-bottom: 12px;
}

.form-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 5px;
    background: linear-gradient(90deg, #222 60%, #444 100%);
    border-radius: 2px;
    margin: 24px auto 0;
}

.form-title i {
    margin-right: 10px;
    color: #000000;
}

.container {
    max-width: 500px;
    margin: 48px auto 32px auto;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.10);
    padding: 48px 36px 40px 36px;
    transition: box-shadow 0.3s, transform 0.3s;
}

.container:hover {
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.16);
    transform: translateY(-4px) scale(1.01);
}

.login-form {
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    color: #222;
    font-weight: 600;
    margin-bottom: 12px;
    display: block;
    font-size: 22px;
}

.form-group input,
.form-group select {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 24px;
    font-size: 20px;
    padding: 16px 20px;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #222;
    box-shadow: 0 0 0 4px rgba(34, 34, 34, 0.10);
    background: #fff;
}

.submit-btn {
    background: linear-gradient(90deg, #222 60%, #444 100%);
    color: #fff;
    border: none;
    border-radius: 14px;
    padding: 18px 0;
    font-size: 22px;
    font-weight: 700;
    width: 100%;
    margin-top: 18px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.10);
    transition: background 0.3s, box-shadow 0.3s, transform 0.2s;
    display: block;
    letter-spacing: 1px;
    text-align: center;
}

.submit-btn i {
    margin-left: 8px;
}

.submit-btn:hover {
    background: linear-gradient(90deg, #444 60%, #888 100%);
    color: #fff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    transform: translateY(-2px) scale(1.03);
}

.toggle-link {
    text-align: center;
    margin-top: 20px;
}

.toggle-link a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s;
}

.toggle-link a:hover {
    color: #2980b9;
}

footer {
    background: #222;
    color: #bbb;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.04);
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    margin-top: auto;
}

/* 搜尋欄基本樣式 */
.search-form {
    position: relative;
    display: flex;
    align-items: center;
    margin: 0 auto;
    margin-right: 30px;
    width: 320px;
    z-index: 1000;
}

.search-form input[type="text"] {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid #808080;
    border-radius: 25px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 16px;
    transition: all 0.3s ease;
}

.search-form input[type="text"]:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.2);
    border-color: #fff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.search-form input[type="text"]::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-form button[type="submit"] {
    position: absolute;
    right: 10px;
    padding: 8px 15px;
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-form button[type="submit"]:hover {
    color: #808080;
    transform: scale(1.1);
}

/* 修改建議列表樣式 */
#suggest-list {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.9) !important;
    border: 1px solid #808080 !important;
    border-radius: 10px;
    margin-top: 5px;
    z-index: 1002;
    padding: 0;
    list-style: none;
    display: none;
    max-height: 400px;
    overflow-y: auto;
}

#suggest-list li {
    padding: 10px 15px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: normal;
    text-overflow: ellipsis;
    overflow: hidden;
    border-bottom: 1px solid #808080;
    display: block;
    text-align: left;
    width: 100%;
}

#suggest-list li:hover {
    background-color: rgba(255, 255, 255, 0.1);
    padding-left: 20px;
}

/* 整體字體與間距放大 */
body,
main {
    font-size: 20px;
}

.container {
    padding: 48px 36px 40px 36px;
}

.form-title {
    font-size: 40px;
    margin-bottom: 48px;
}

.form-title:after {
    width: 80px;
    height: 5px;
    margin: 24px auto 0;
}

.form-group label {
    font-size: 22px;
    margin-bottom: 12px;
}

.form-group input,
.form-group select {
    font-size: 20px;
    padding: 16px 20px;
    margin-bottom: 24px;
}

.submit-btn {
    font-size: 22px;
    padding: 18px 0;
    border-radius: 14px;
}

.performance-result,
#performance-chart {
    font-size: 20px;
    padding: 32px 24px 24px 24px;
}

.performance-result h3 {
    font-size: 26px;
    margin-bottom: 18px;
}

.score-display {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 32px 0 24px 0;
}

.score-circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: linear-gradient(135deg, #222 60%, #444 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
    color: #fff;
    font-weight: 700;
    font-size: 48px;
    position: relative;
}

.score-label {
    font-size: 22px;
    font-weight: 400;
    margin-top: 4px;
    color: #fff;
    opacity: 0.8;
}

/* 訂單卡片樣式 */
.orders-list {
    margin-top: 20px;
}

.order-card {
    background: white;
    border-radius: 15px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.order-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.order-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 2px solid #eee;
}

.order-date {
    color: #666;
    font-size: 0.9em;
    font-weight: 500;
}

.order-status {
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: bold;
}

.status-processing {
    color: #2196F3;
    background-color: rgba(33, 150, 243, 0.1);
}

.status-sent {
    color: #FF9800;
    background-color: rgba(255, 152, 0, 0.1);
}

.status-delivered {
    color: #4CAF50;
    background-color: rgba(76, 175, 80, 0.1);
}

.order-content {
    padding: 10px 0;
}

.order-content h3 {
    margin: 0 0 12px 0;
    color: #333;
    font-size: 1.2em;
}

.order-content p {
    margin: 8px 0;
    color: #666;
    font-size: 1em;
}

.order-actions {
    margin-top: 20px;
    text-align: right;
}

.delete-btn {
    background: linear-gradient(90deg, #ff4444 0%, #cc0000 100%);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(255, 68, 68, 0.2);
}

.delete-btn i {
    font-size: 16px;
}

.delete-btn:hover {
    background: linear-gradient(90deg, #cc0000 0%, #aa0000 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 68, 68, 0.3);
}

.delete-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(255, 68, 68, 0.2);
}

.no-orders {
    text-align: center;
    color: #666;
    padding: 40px 20px;
    font-size: 1.1em;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    margin: 20px 0;
}

/* 響應式調整，手機也大一點 */
@media screen and (max-width: 768px) {
    header {
        height: 110px;
        padding: 15px;
    }

    header h1 {
        left: 50%;
        transform: translateX(-63%);
    }

    .menu:hover {
        color: #808080;
        transform: scale(1.1);
    }

    .menu {
        display: block;
    }

    .menu-items {
        position: fixed;
        top: 120px;
        left: 0;
        width: 100%;
        background-color: #000;
        flex-direction: column;
        align-items: center;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .menu-items>* {
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .menu-items.open {
        max-height: 500px;
        padding: 15px 0;
    }

    .menu-items.open>* {
        opacity: 1;
    }

    nav ul {
        display: flex;
    }

    nav {
        flex-direction: column;
        align-items: stretch;
        height: auto;
    }

    .menu-items {
        flex-direction: column;
        align-items: flex-start;
        margin-right: 0;
    }

    .search-form {
        width: 80%;
        margin: 20px auto;
        position: relative;
        left: auto;
        top: auto;
        order: -1;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .menu-items.open .search-form {
        opacity: 1;
    }

    #suggest-list {
        width: 80% !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        max-height: 350px;
    }

    #suggest-list li {
        padding: 15px;
        text-align: center;
    }

    .container {
        max-width: 98%;
        padding: 20px 8px;
    }

    main {
        padding-top: 120px;
    }

    .form-title {
        font-size: 28px;
    }

    .submit-btn {
        font-size: 18px;
        padding: 16px 0;
    }

    .performance-result,
    #performance-chart {
        font-size: 18px;
        padding: 28px 20px 20px 20px;
    }

    .performance-result h3 {
        font-size: 22px;
        margin-bottom: 16px;
    }

    .order-card {
        padding: 16px;
        margin: 15px 10px;
    }

    .order-header {
        flex-direction: column;
        gap: 10px;
    }

    .order-content h3 {
        font-size: 1.1em;
    }

    .delete-btn {
        width: 100%;
        justify-content: center;
        margin-top: 15px;
        padding: 10px 20px;
    }
}